I built a basic slideshow from scratch in jQuery.
The way it works is php hands an array of image paths to jQuery via JSON once upon page load, and jQuery just inserts a new img into the page using the src info from the array.
When you click next, a new image is inserted and the previous one is removed from the DOM once it slides away....
I have the script below placed in the HEAD of the page. The map should initialize when the page loads. There's two pieces to this puzzle, one is the script within the document.ready which sets all variables and configures the map i am wanting to place on a page. The second piece is the window.onload=initialize_map; that starts the map...
i got a little book marklet
javascript:window.location='http://alexa.com/siteinfo/'+window.location.host;
when clicked it takes you to alexa.com/siteinfo/www.thesiteyouwereon.com
i dont know a lot about js regex..is there a way to get rid of the www. from the begining of the site. so i can get alexa.com/siteinfo/nowwwsite.com
thank...
How do I use DOM in Javascript to check if a radio button is checked and then if so add new form elements to datesettings?
//Radio buttons
<input type="radio" id="dateoption" name="dateoption" value="1">
<input type="radio" id="dateoption" name="dateoption" value="2">
//Add new form elements
<span id="datesettings"></span>
Im current...
I have some javascript which will create some sort of widget on a page. I will be giving this snippet to clients so I want them to have to do very little.
The most obvious solution which I have work right now looks something like this:
<div id="divContent"></div>
<script type="text/javascript">
MakeWidget('divContent');
</script>
...
Supposing I have some random block of text in a single line. Like so
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
But for whatever reason (width settings on the containing element, use of text-zoom etc.), on the viewer's screen it displays as two or more lines.
Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
or ...
I'm absolutely digging what I've been able to do in jQuery. From my perspective there isn't a lot jQuery can't do.
I'm working on a new project and my plan is to use jQuery heavily with JSON,Ajax and Webservices inside of a ASP.net project.
Before I go spouting my opinion about how great jQuery is, I thought I might ask if there are...
Using the JavaScript sample found in this stack overflow post you can have a button that automatically selects a table. This selected table can then be copied to the clipboard.
My users will be copying this data into an Excel template and do not need the header information (<th></th> or <thead></thead>).
My table looks something l...
I am trying to find the DOM iframe or frame element for each of the frames in a window's frames collection. The fastest way to do this, I think, is to access the frame's frameElement property. This property is only available for a same-domain access, and returns undefined and prints an error message to the log in the cross-domain case.
...
I'm building an auto-rotating image-carousel with jquery and I'm trying to get the images to rotate infinitely rather than when it reaches the last image, it 'rewinds' back to the first image and starts again. Unfortunately, I'm rather new at the jquery game, so I'm having some trouble getting this to work. I've tried piecing together ...
I have a hidden input #start thats value is used to display a range of returned data (it is the starting point of an index) each time you click #next I need to increase its value.
$("#next").click(function() {
$("#start").val() + 80;
)};
is this correct? or is there a better way?
thx all!
...
I have a simple client-side Sqlite database (via. Google Gears) I want to use for persistence of the contents of a javascript object's properties (not methods). I don't really care about normalization since it has lots of potentially disparate fields (primitive types, arrays, objects) that would thwart normalization anyway.
What would ...
I'm using the mootools bubble chart here http://moochart.coneri.se/ and want to make sure it compiles in all browsers (including IE7 and IE8). The creator says that I can try using Excanvas, but does anyone know how to actually implement this?
Thanks!
...
Hi, the problem is that the tooltips shows and error in the script (don't know what could it be) in IE7
Can you take a look??
If you need any of the code or something else please ask...
...
I've got a greasemonkey script that, when it runs, checks to see if an update is available, and prompts the user to download the update if so. This normally works fine, except that if a user opens multiple tabs simultaneously (say, on starting the browser, or using "Open All in Tabs" for a bookmark folder), the greasemonkey script will ...
I am trying to send the value of a radio button to a javascript function. Eventually the function will do more but my testing it has come to a dead end because I keep getting a returned value of undefined. Here is what I have:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti...
My application depends on JavaScript, I want to check the client browser's JavaScript is enabled or not and raise an alert message if its turned off.
...
Hi
I have the following code in cf and I want to alert out the values
......
......
<cfelse>
<cfset val = structFind(request.session.prefs, key)>
<cfquery name="insertPref" datasource="database">
INSERT INTO
`database`.`user` (
`cID`,
`cl...
Hi, if radio button 2 is checked add input box into datesettings. How do i add an input box? If radio button 1 is checked do nothing but if button 2 was checked previously remove children. Can you help me
Thanks
function CheckDateOptions() {
var o1 = document.getElementById("dateoption1");
var o2 = document.getElementById("dateopti...
Hello:
I have a simple workflow [Step 0]->[1]->[2]->...->[Step N]. The master program knows the step (state) it is currently at.
I want to stream this in real time to a website (in the local area network) so that when my colleagues open, say, http://thecomputer:8000, they can see a real time rendering of the current state of our workfl...