issues sending ajax data
I am sending data from one site to another using jquery. both are owned by me. When the submission on data from the requested site is successful, it echo 'Success' (Using php). only problem is I dont know what end is working correctly. here is my jquery code. if anyone could tell me if this is correct. alert('Button Works!'); $.ajax({ type: "POST", url: "http://play.anthonylgordon.com/usersessions/store", data: 'data=Test', success: function(msg){ alert( "Data Saved: " + msg ); } }); i used the first
using Jquery menu and MasterPages
Hello, I am building a site and trying to get the menu up and going.. i have found that when i put the Menu on my masterpage.. (so all pages have it).. the menu just throws a javascript error when you click on a link... i confirmed this when i put the menu on two different pages.. and didn't use the master.. all was well... how do you get around this? Thanks
[jQuery] tabSwitch - dynamic height
Hello guys, I'm using tabSwitch (www.hieu.co.uk/blog/index.php/tabswitch/) and I need to set the panel height dynamically (according to the div 'page_container' height) so I tried var page_height = $('#page_container').height(); $('.panel').tabSwitch('create', {type: 'slide', loopback: 1, height: page_height, width: 575, speed: 100 }); but looks like it doesn't work: the panel arrives until the end of the page (instead having the same height of 'page_container'. However if I fix the height everything
[jQuery] Loading jQuery dynamically
Hello, I need to load jQuery in a dynamic an synchronous way. How can I do that? It seems that the usual ways to dynamically load scripts (like DOM insert) are all asynchronous. Basically, I am looking for a function like getScript, outside jQuery. Thanks!
changing the <title> tag?
I'm having fun changing items inside divs, spans, or anything else with a simple html() function: $("#somediv").html("text here"); But what about meta tags? I figured adding an ID to the title tag would work, but I was mistaken. For example, I'm working on an online chat form. When someone receives a message, I'd like it to show in the title tag too, much like meebo. I've scoured the internet for this, but I've found nothing. Has anyone done this before?
Broken links in dynamically loaded pages
Hi. When I load an HTML file dynamically which contain relative links with jQuery, all the links are broken. Could anyone suggest a solution which does not involve changing all the links to absolute values? Thank you.
[jQuery] JQuery in ZK 3.6.2
Hi, someone want help me in this task: I want use MeioMask (http:// www.meiocodigo.com/projects/meiomask/) in my app. I know what zk5 is integrated with jquey, but i can not upgrade version of zk in my app. I try this code, but no sucess: <zk xmlns:h="http://www.w3.org/1999/xhtml"> <h:script type="text/Javascript" src="js/JQuery.js"></h:script> <h:script type="text/Javascript" src="js/jquery.meiomask.js" charset="utf-8" ></h:script> <h:script type="text/Javascript" src="js/jquery.metadata.js"
[jQuery] Treeview .js file location
Hi, My hosting service does doesn't have gzip compression enabled -- and I'm looking for a server to connect to jquery.treeview.js to speed up my page loading. I use http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js and http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js -- is there an equivalent for jquery.treeview.js Thanks
[jQuery] Jquery Cookies Or Sessions
I know I will more then likely have to download the plugin for cookies but I been doing research on how to listen for when the session expires but cant seem to find the issue. Ive seen some examples where they set how long the cookie will last until it expires. But I would like to fire an event that will happen when the user leaves the site or when the session expires but I dont know where to start. anyone have any ideas. Either for the plugin or anything at that. -- View this message in context:
[jQuery] Images won't show or fadeIn after .cycle
Hi all, I have one <div> with a list of <img>s, but after I .cycle the <div> and .cycle("stop") it the images won't show up, neither by .show, .fadeIn or anything. Is this normal ?, how can I stop the cycle and just show the image I want ? Thanks.
[jQuery] input file type get name
hi, I was wondering if anyone knows a way to get the file name(the one the user has just browsed and is about to upload using the form) from a form input. I tried $("#fileInput").val() but it does not work. cheers,
all select-lists unintentionally hidden when using BGIFRAME
TEST PAGE: http://bit.ly/1NOQ03 ISSUE SUMMARY: Page uses the model dialog code from JQUERY UI. Was having the IE6 Z-Index issue with IE6 Applied the BGIFRAME plugin solution (bgiframe: true) ISSUE DESCRIPTION: When the modal dialog is triggered, any/all select-lists previously displayed are suddenly hidden. BROWSERS TESTED: FF2.x, FF3.x and IE8 behave no issue. Only manifests this way in IE6. REQUEST: How can i improve my code such that the select-lists dont get hidden when the modal dialog is displayed?
add and remove an overlay
I am building a new website which has some boxes that changes from classes(done with jquery magic ). I want to add an overlay(like the lightbox fading background) to the page when the user clicks on the switch button. I have tried a couple of things but it seems not to work: If tried to append a div to the body but that doesn't seems to work: anybody a idea? $(".nl").click(function(){ $("div.lang_english").fadeOut("fast", function() { $(this).fadeIn("fast").removeClass("lang_english").addClass("lang_dutch");
Jquery Coda-Slider Hide Arrows at Beginning and End
Well the title explains it for the most part, I'm having issues coming up with any code that will work to hide the arrows on the coda-slider at the beginning and end of the slides. I'm using this coda slider http://jqueryfordesigners.com/coda-slider-effect/. Example page: www.77interactive.com/ADS/micro I attempted to do it though serialScroll, a plugin that the coda-slider uses, but all I've managed to do is make the arrows inactive and would like them to disappear. The code following controls the
TabUI - Access parent form values from a tabUI page?
I have a page which uses TabUI. Each tab is a separate page e.g <div id="tabs"> <ul> <li><a href="settings.html"><span>Settings</span></a></li> <li><a href="data.html"><span>Data</span></a></li> <li><a href="misc.html"><span>Misc</span></a></li> </ul> </div> How do I access a form control value e.g a text box on the parent page from within the settings.html or other tab pages?
Jquery Fade not Consistant / Preload Issue?
Hello, Hello, I am using the Gallerific plugin on this page: http://staging.asla.org/test/LWSother/furniture.html. The fade doesn't appear to be consistent across all of the images. When clicking through the first "page" (images that are numbered to 10) the fade is subtle. but when clicking on the third or fourth purple box the fade is non-existant and flashes to a blank screen. But once this has already occurred and I go back to the same page/image the fade is back to being subtle. I'm thinking
2 jquery versions conflict
Hello everyone, I am making a website and i'm using jquery to make some menus animation and a image loading with background opacity. I'm using this script here and well, my problem is: <script type="text/javascript" src="fancybox/jquery-1.3.2.min.js"></ script> <script type="text/javascript" src="fancybox/jquery.easing.1.3.js"></ script> <script type="text/javascript" src="fancybox/ jquery.fancybox-1.2.1.pack.js"></script> <script type="text/javascript"> var $j = jQuery.noConflict(); </script> <script
preloading images through loading from ajax
Ok any brain boxes out there? I am trying to preload images. That isnt all that big a task but when loading them randomly and from a php file using ajax get totally confused.... any ideas? Here is my code: //Get the height and the width of the viewport into var for calc var wWidth = $(window).width(); var wHeight = $(window).height(); //Calculate the amount of rows and columns that are needed var noColumns = 1+(wWidth/160); var noRows = 1+(wHeight/95); var totalBoxes = Math.ceil(noColumns*noRows);
Jquery to populate drop downs
Hi I'm trying to populate some combo boxes from a database. I'm using PHP and Jquery but am managing to crash IE8 with the following error: Faulting application name: iexplore.exe, version: 8.0.7600.16385, time stamp: 0x4a5bc69e Faulting module name: mshtml.dll, version: 8.0.7600.16419, time stamp: 0x4aa1d5b9 Exception code: 0xc0000005 Fault offset: 0x0007a82c Faulting process id: 0x2c4 Faulting application start time: 0x01ca5bd2bb86a4ff Faulting application path: C:\Program Files (x86)\Internet
jquery selector - IE problem
Hi, I'm using the following selector to identify all inputs which are disabled: $(".inlineediting input[disabled='disabled']").addClass("notActive"); This works fine in FF and Safari. But it doesn't work in IE. Any idea why? thx TC
Cookie with a dialog, not working?
Hi guys i'm totally new here, but am specifically looking for JQuery gurus as i learn more about it, Love it! My aim is to get the dialog box to show then after clicking the 'x' or 'Ok' for the cooke ti be set for 2 days expiration using the cookie.jquery.js plugin so the dialog doesnt open next time until the cookie expires! This is what i have been working with an tried but to no success! <script type="text/javascript"> $(function() { $("#dialog") .dialog({ bgiframe:
Why would my text be squeezed within a DIV
Hi, As mentioned in previous post, I'm a newbie. I'm trying to toggle a DIV in my application. When I add the toggle function to my DIV, the text seems to get squeezed -- gets jaggy. It's kind of like if I take a 200x200 JPG image and set its dimentions to 190x170. It shows but it's all squeezed. My text looks like that. If I remove the toggle function from my page and let the DIV show, the text is perfectly fine. What could be causing this and how can I fix it?
not working 100%, animation, layout
The only issue I can't figure out is the image will not align to the left. I tried numerous things but I'm whooped. Any help greatly appreciated. <html xmlns="http://www.w3.org/1999/xhtml" > <head id="ctl00_Head1"><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title> Home </title><link href="css/main.css" rel="stylesheet" type="text/css" /><link href="css/site.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jq/jquery-1.3.2.min.js"></script> <script
text and transparency
On a page I have 5 images and when I click on one of the images I would like a container to appear containing mainly text and a couple of images (a little like how lightbox works) above the current page which will become transparent. Ideally, the text and images will be imported from and html/text page. I can animate boxes etc but I cannot find info on how to bring the text and images on top of the current page which will be transparent. Any pointers to get me started please would be appreciated.
Animated margin-top doesnt have a fix speed
Hello guys, hope you can help me out. Im animating a div to go up, its a long animation upto -8000px but it doesnt show a fix speed, at the begining is really slow and speeds up then at the end it slows down. I would like it to have a fix speed, do you know any plugin or anything to help out? Thanks!
How to recieve a PHP array from an AJAX request
Can anyone tell me how I can recieve a PHP array after running $.ajax()? For example: //PHP: file.php <?php //sample array $myarray = array('food', 'sports', 'other stuff'); echo $myarray; ?> //JQuery $.ajax({ url: 'file.php', type: 'POST', success: function(data){ console.log(data); //Comes out "Array" instead of the contents of the array. How do I do this? } });
How to check if has child elements
Hello, I have a drag and drop box. Don't know how to solve one problem. How to check if a drag and drop box have child elements? Tried everything I know and nothing works.
Applying effects to dynamic content
Hi all! I'm new to jquery and to the forum so bare with me. I'm attempting to print a column of links received via AJAX request with an accompanying simple hover effect, however I can not get the hover effect to apply to the dynamic content. I've tried a few different ways of accomplishing this, none of which have worked so far. The most recent is posted below. The call to imgUpdate.php in the following code snip returns content like: <a class='storyImage' href='http://link.com/dev/?p=50'><img src='http://link.com/img1.JPG'/></a><br
where to find some basic instructions?
Hi I'm just starting to use jquery and i'm finding some things a bit hard. I don't really know codes and scripts so i work as it goes along. I've been trying to create a way of presenting a set of images. A very simple slideshow where you click the image to get to the next one. It will be sitting in a div tag which fades in when you click to see the gallery. It should fade in to the first image and then you click on the picture to move on to the next. I'm really looking for a very plain strategy.
jquery post in Wordpress
I am using the jquery ajax post for a contact form I am creating. I am doing it in wordpress. I have used firebug to try to debug the errors and I am getting a 404 error for the sendEmail.php file. I have tried placing an absolute url and also used relative urls. I tried fixing file permissions and nothing is working. Any ideas? $.ajax({ type: 'POST', url: '../sendEmail.php', data: 'name=' + name + '&email=' + email + '&comments=' + comments, success:
[jQuery] SerialScroll with LocalScroll
I am working on a project where I have a navigation menu with categories and then a list of items broken into those categories with a header above each one. With the navigation I want to scroll to the begining of each group of items. so l I have an unordered list that in each list item has a header and then another unordored list of products. Since there are to many products that can be in a given category, I can not scroll with the previous and next buttons base on the main li item, I have to do
can't return false in live event on Internet Explorer
This works fine in Firefox, but Internet Explorer ignores the return false and just follows the link. $('#favorite>a').live("click", function(){ $('#favorite>a').attr("disabled", "disabled"); var photo_id = '<?php echo $_GET['id']; ?>'; var user_id = '<?php echo $user_id; ?>'; $.ajax({ type: 'POST', url: 'process_favorite.php', data: 'favorite=true&photo_id=' + photo_id + '&user_id=' + user_id, success: function(result) { $('#favorite').html(result);
[jQuery] Dynamic img not getting events
Hi all, I have a very simple html structure and the idea is to create and use DIVs or elements I do dynamically, so there is one div which I use to do something like: $("#main").html("<div id='img-lisg'><img id='img1' .....></div>"); That works just fine, the problem is when I try to use events on the elements I've created dynamically, those just don't work. There is something like this: ("#dynamicDiv").click(function(){ alert('Testing'); }); It never works,... how should I create the handlers for
change() event problem in internet explorer
Hello , i'm running intro a problem with a change on a form , identified either by it's id or simply form . In firefox the changes made on any of the form elements are being evaluated but this doesn't happen in IE. I'm using it this way $('#compara').change(function() { //do stuff here like show some data in a div with .html() method etc .. );} where #compara is the id of the form . Here's a live example : http://reloadro.dyndns.org/rca/templates/sb/home.html At the moment it's working because i'm
Fuction call - Syntax problem
Hi there, I do have a function that triggers once a select box option has been selected. Now I would like to preselect options on load. I am stuck in getting the function call rigth. Currently this is the code that triggers upon change of the element: $(this).change(function () { How can I rewrite this to trigger on change AND on manual call (somthing similar to this pseudo code: if ($('#province_select').val OR $this.change){ Thank you for any help![/code]
[jQuery] How to set timeout in the dropline menu
http://www.dynamicdrive.com/style/csslibrary/item/jquery_drop_line_tabs/ any body knows how to set the a delay time for this menu Thanks in advance
Errors in IE when getting images from flickr
I made this script that takes my uploaded images from flickr rss and puts them into my webpage. It works fine in firefox and opera but when I try it in Internet explorer it just gives me errors and where it should be the image it appears an image from a button on the page. In google chrome the images don't appear where I want. Is there anything in this code that should give any errors in IE? The subject //get flicker images from rss //get flicker images from rss $.get("js/getflickreasy.php",
[SOLVED]Why does this animation only work in Chrome?
Here is a link to a very simple page, with one simple navigation menu: http://www.mygamehandle.com/quality/ If you view the page in Chrome, you will notice a simple mouse-hover animation. This animation does not work in Firefox 3.5 or IE 8. The function to animate the navigation is in the external.js file, and looks like this: $(function(){ $('.nav_bar').hover( function(){ $(this).children().stop().animate({'padding-right':10}, 300, 'easeOutSine'); }, function(){
solved it myself...
solved it myself :/
for...in loop
I am just trying to figure out how to do some different things with the for...in loop and jQuery, but now I'm wondering if this is even possible. I made a simple example to test: function tellMeHeights() { var allDivs = $.makeArray('div') for (mydiv in allDivs) { height = $(mydiv).css('height') alert(height) } } But this doesn't work - the alert box just says 'undefined'. Is it possible to iterate jQuery objects like this, or should I be using something else like .each? Thanks for the help
Next Page