JQuery :: Using Hash Sign Next To GameID In Function
Apr 9, 2010
Is it possible to have the # sign somehow next to "gameid" in the function? It's triggered through a "onclick" link. Right now Safari and Chrome don't need the # sign but Firefox does. (not sure about IE)
how can I change default $ sign to any other sign like # or @ etc. The basic problem is when I try jquery with mootools js then mootools have also default $ sign so that bot are conflict to each other.
how would function doSomething be written for this to work.
I would also like the hash to be optional and the variables in the hash to be optional. meaning i should also be able to call doSomething(); with no variables in it.
I have here two inputs with class nbr. The initial values are set, and those values change programmatically over time. My list of inputs is a lot longer than this but I simplified. You can see the work in progress on [URL]. Just insert two random dates in page1 with the datepicker and the navigation will appear. At the end of a series of calculation I need to grab all inputs with positive numbers, and all inputs with negative numbers.I was thinking of selecting all fields with nbr class first, then use .filter() with a function
Ihave a list named'Geography', the list has a dropdown field called CountryDropDown, ID of this field is ID_CountryDropDown. This field is looking up to another list called LookUpCountry, which contains all the country names in the 'Title' Column.
I am trying to get a slider (slidedeck) to open to a certain slide when the page loads according to the current url.
[Code]...
I'm really new to JS so I'm not even sure if this is the best way to go about this, but SlideDeck don't offer support for linking to a specific slide when using their WordPress plugin (which is poor form I think) so I need to figure it out myself.
I am trying to make sense of the location hash etc. However, I have a few issues that I need to overcome in the process.I have 3 tabs, which need to create a hash and then allow return to that tab on page reload.This is what I need doing: firstly, I need to check the filename accessed and if it is the correct filename (say 'testing.php' or 'testing') then I need to check the GET parameters to see which ones have been called and exist, THEN I need to check the hash to see which tab to load.
I have an URL like www.bla.com#myhashtag. Now I want to get the string "myhashtag" without the hash.So far I have thish which should give me "#myhashtag", right?
var hashextract = location.hash; var hashextract2 = '<h2>'+hashextract+'</h2>'; $j(hashextract2).appendTo("#hashtag");
But I am not getting anything. Am I doing something wrong here?
I have a main menu at the top of each page of my site and on one single page a Coda Slider. To reach each different slide you need just #1. #2 etc from within the Coda page, but to get to it from a different location you need www.sitename/pagename/#1
Now I cant have both versions in the menu. So is there a way to add some script, just to the single Coda Slider page and get it find each of the links (I can add a class to them) and remove the link up to the # tag, so the link would then just be #1 and would correctly use the Coda slider panels.
I have an ezine with two different editions, a European and North American. I've decided to merge the two forms into one to simplify the sign-up procedure. However, I can't get the thing working
Here is the code for the two seperate forms, which was created automatically by the excellent Max-eMail. I've tried to merge them with a radio button like:
Code: <input type=radio name="lists[15]" value="1LitNorthAmerica" CHECKED> North American Edition <input type=radio name="lists[14]" value="1LitEurope">European Edition but the values in [] are different for the countries, sex, etc. (For some reason the "[14]" and "[15]" stop the radio-button working - can't select between the two)
Could anybody be so kind as to help me merge the two forms together?
Here's the code (I haven't listed all the world's countries in the drop-down box to save space):
On the plugin page it says: Simple Ajax (in ext) Passes selected value of parent select to url as 'val=', but accepts the full ajax options hash so you can append other data as well
What is the Full Ajax Options Hash?
I tried to use it as follows:
Copy code
All changes I try do not work ... But it seems to be possible so ...
I really don't know what I am doing, but I need to know how to alter this script to load this website without having to click "Weathersentry online". I would like to double click on the icon the code is attached to and it sign in automatically.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>
I almost got part of this one program to work. It is of a golf sign with a golf ball moving across and landing in the word Golf into the "o" When the ball lands in the o the sign of "your online source of golf equipment" appears after ball has landed and grows in size.
right now the ball is what I have but I can not get my sign to appear.
I use 2 external files
I will post all the coding here
here is my main file I worked on
this is my golfpage.htm file
<html> <head> <!-- New Perspectives on JavaScript
[Code]....
What i am not able to get work i think is to call the changeFontSize() function to increase the size of the "sign"
also an if statement to test value of fs variable is less then equal to 20
I am having a problem with getting my output to display a dollar sign. I have the program running the way it is supposed to, it just won't format for currency. I have tried a couple of different methods and do not understand why the current code does not work.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitonal//EN" "http://www.w3.org/TR/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> [Code]...
I'm a javascript rookie trying to figure out a way to get bookmarkable URLS for the images on a single page with multiple slideshows. I must admit I don't really understand the first part of the code on the Cycle demo page for this, which only works for a page with one slideshow:
While I'm shopping for a little guidance, it would also be really cool if the hash tags were semantic somehow with respect to each slideshow e.g.:
Imagine a wife has signed on to a web site in a browser tab. She does not sign off and walks away to do something else. Her husband sits at the computer and seeing her signed on, opens a new tab and tries to sign on to the same site.
I am trying to write a script that will close other tabs/windows when the husband goes to the same site to sign on.
So, on the sign on page (or even better, the sign off page), when the sign on button is clicked, a piece of Javascript code is run first. The javascript simply goes through all tabs on the browser, and checks to see if any such tabs has an HTML document that came from the same domain as the sign on page. If such tabs exist, then before POSTing the user name and password to the server, the Javascript code will close those tabs that contain HTML documents came from the same domain.
So, I understand I need to set the window.name to a specific value. But does anyone know what the code on the sign on/sign off page to close the other tabs/windows would look like?
Imagine a wife has signed on to a web site in a browser tab. She does not sign off and walks away to do something else. Her husband sits at the computer and seeing her signed on, opens a new tab and tries to sign on to the same site.
I am trying to write a script that will close other tabs/windows when the husband goes to the same site to sign on.
So, on the sign on page (or even better, the sign off page), when the sign on button is clicked, a piece of Javascript code is run first. The javascript simply goes through all tabs on the browser, and checks to see if any such tabs has an HTML document that came from the same domain as the sign on page. If such tabs exist, then before POSTing the user name and password to the server, the Javascript code will close those tabs that contain HTML documents came from the same domain.
So, I understand I need to set the window.name to a specific value. But does anyone know what the code on the sign on/sign off page to close the other tabs/windows would look like?
I have this little snippet of code that swaps a toggle image for news for a plus or minus sign showing if the div is open or closed. This code has worked before but i made a couple modifications today and it stopped working unexpectedly and i'm not sure why its failing. I am presetting the div tag with a plus sign with css and then modifying it with javascript. The problem i am having is that when the div tag has been opened it does not swap the image to min.gif anylonger. It remains max.gif.