I have a wee bit of code that handles a select list change to load some content via AJAX. In IE 7 & 8 (works a treat in 6!), clicking on the select list triggers the pop-up blocker thingy. My code certainly does not open a new window or anything like that:
$('#group_nav').change(function()
{
var group_id = $(this).val();[code]....
adminNavSetup() is the function this block of code resides in.However, commenting that out has no effect. Note that the select list doesn't even open; a click is all it takes. Also, no request is made to the server.why the pop-up defense would be triggered like that?
I'm having problems with a Javascript 'Lookup' function.
Basically, I have a select menu 'Customer' which triggers a 3 JS functions, to populate 2 extra select menus.
Using IE Developer Tools, during debugging, I get this error: Expected ';' Error
This relates to either: eval(ajax_CustContact[index].response); OR eval(ajax_CostCentreContact[index].response); (it's a bit random, as sometimes it works, sometimes it doesn't)
I have tried changing the 'custid' to 'custname' to check whether it was an integer causing the problem, but had the same problem.
Can anyone tell me how i can change which attribute on my form field triggers the validation?currently it appears the be the name attribute. So in my Rails app using Rails helpers, it sets the name to somthing like formname['fieldname'] and the whole name.in my script if i do something like [codde]it causes the script to break.
I have a php function that list all of the countries from my database as a select option, then based on what the user selects for their country im using jquery to make an ajax call and get all of the states/regions for that country. This part works fine. I'm running into an issues, as when a user login's in to edit their profile, how would I make the select change based on what is in the databse.
This is what I'm trying to do:When a user selects a group in the first SELECT box, another SELECTbox should be loaded from an external PHP-file (using MySQL), based onthe group-id of the first SELECT box.I use this code:
I have a dropdown style navigation menu which contains a <div id="MenuBar1"> holding the main heading of the menu item. I then a child <div id="DropBox1"> within that, that drops down on mouseover of the parent <div id="MenuBar1">. I am doing this using the following functions (I've tried all these variations with limited success)...
I have a couple of links on my page (inside a <div id="theme-selector">) which allow you to change the CSS stylesheets:
$('#theme-selector a').click(function(){ var csslink = $(this).attr('href'); $('head link').remove();[code]...
Now, after I've changed the style on the page, I want to get the new background color, using the following code (which I put after the
$('head').append call): var bgcolor = $('body').css('background-color'); alert(bgcolor);
The problem is, I think, that it takes some time for the browser to download the new stylesheet and I sometimes get the old background color in my alert message. Is there some event I can bind that will only alert me after all the stylesheets are loaded on the page? At the moment, all I can think of is using a setTimeout(function(), 5000); which isn't great, because what if it takes longer/shorter to load all the CSS on the page.
I have multiple triggers and I am trying to pass variables via a "rel=" tag (which are unique id's) for each trigger I can get most of it working, problem is that since there are multiple triggers with id="newsTrigger" only the first listed trigger works Using PHP/mySQL. An example trigger is:
The above outputs a large number of rows with the same span id of "newsTrigger". When a user mousesover any of the newsTrigges I am trying to get an ajax dialog to load up content based on the id that is being passed through the rel tag. How do I do this? The javascript so far is:
<script> $(document).ready(function(){ $("#newsTrigger").mouseover(function() { var newsid = $(this).attr("rel");
I am having problems with the hover queue, see [URL] Now i found this plugin [URL] but assumes you are animating $(this) i my case a div triggers another div to animate
I have the following question: What event could be or is triggered when someone fills in a inputfield using the autosuggest that is build in in browsers? Like for example my email that always comes back on email input fields. I have tried the change and keyup event but they don't work. What event could be or is triggered when someone fills in a inputfield using the autosuggest that is build in by browsers.
I have a code that triggers ajax calls on button click, it all works fine but every now and then, the click triggers 2 AJAX calls. When i look at these calls in FB i see they succeeded (they get the expected response) but i get Timeout (I've set it to 3 seconds).
I have a contact page which is opening in a new window using window.open. Since this is called when the user clicks a link, pop up blocker don't block it.
However, I want to show a survey after this window has been closed. I find nothing else but to use window.open. But this time, I use the onunload tag in the opened window. This is blocked by pop up blockers.
Is there a way to print my survey, whatever it is, from a window opened by the user and poping on the onunload event?
We have a database application that runs in a popup Internet Explorer application window. The reason for this is to isolate the casual user from the address bar and the typical IE navigation buttons.
The application has a browser test page that displays an error message when a popup blocker is found and opens a popup page stating the test was successfull if there is no popup blocker.
Is there a reliable method (preferably javascript) for detecting the major popup blockers (SP2, AOL, Yahoo, Google, MSN, etc.)? We currently have a temporary solution in place which works OK but we would like to have a better solution.
We have already reasearched this on the net, as well as spent a few hours trying different options.
The application is designed to run on MSIE only so the solution can be Explorer specific.
I am having a problem with a site I am working on right [URL]..clicking on the "Kontaktieren Sie uns"-Link it triggers an unwanted scroll in the slider just underneath it. I am also getting a java script error when I view the site on ie/windows. I am clueless since I am not at all confident with java script.
I'm using the datepicker.ui in a form that also uses the validate plugin. The form happens to use the accordion functionality found here, but I've also tested this in a simpler form that uses the standard syntax for both scripts.
When the user initially picks a date using the datepicker, validate runs and flags the input as invalid, even 'though the field isvalid. choosing another date, or choosing the date a second time, sets the field to valid.
I have a jsp page, which click a link and refresh the current page, and ALSO create a popup window which links to other jsp file to generate a file for download.My problem is I must create such popup window, with out blocked by IE-browser, any method, javascript, css....servlet, is ok.
I got a problem. I'm opening my flash pge in a popup that comes up when the site loads, but the fireburd popup blockers stops it. Anyone got a script that doesn't get blocked?
I've been having problems getting my select option to change the options of another select option. I'm not much of a javacsript coder, so I'm at a lost.When I select the first option nothing appears in the second option.
I am working on a class registration system that requires students to register for a main class (101, 102 or 103). The student is supposed to select one main course as well as provide a second choice in case the first is not available. I have two dropdown select fields to capture data
1) Choice -1: 101 / 102 / 103 ( Student needs to select one - Reading the classID from classes table) 2) Choice -2: 101 / 102 / 103 ( If student selects 101 in Choice-1 then the only classes available under Choice-2 should be 102 or 103).
How can I accomplish the above? Further to this there are two fields on the form where I would like to auto populate based on what they have selected in Choice-1 and Choice-2.
For Example: If a parent selects choice1: 101 the child Choice1 field should autopopulate with 100. If a parent selects Choice2: 201 the child Choice2 field should autopopulate with 200
I'm working on a project that has a logout button, but (like most things) it's kind of a hack. I'd really like the one logout window to actually hit two logout URLs. I only need to display one window that a person has logged out, but would like to end the session in both. I'm thinking I could use something like Code:
I have a text box, to which an onchange event is associated. We show suggestions to the user just below the text box (Google suggest style) based on what he types. The suggestions are shown in a table under a div (which will be hidden when page loads).When the suggestions are more than 10, a scroll bar is shown. The issue now is the following:1. User enters a character in the text box (value changed in the box)2. The suggestions are shown (more than 10, so scroll bar comes up)3. User clicks on the scroll bar to scroll down.This triggers the onchange event of the text box. This happens only in IE7+. Same works fine in Firefox.
I'm currently having a problem with getting a change event to fire when changing the values of a select box. I've put together the sample code below to show what I mean.