jquery

Is there a JQuery plugin for the iPhone that will notify the user to "Bookmark" their app?

Because it is not possible to force the iPhone to bookmark a webpage, I want a little arrow/bow to drop down to notify people to bookmark my mobile web page. ...

Refresh ads after a jquery action?

*FYI: I'm not using Adsense and this is not against my TOS... I have pages that display jquery slideshows. I used to create the slideshows in html and so every slide change would be a pageview. Now that I'm using javascript for the slideshow I am only registering one ad impression for every slide viewed. I'd like to find a way to hav...

How can jqGrid be used when the number of columns is dynamic (i.e. determined by the data set)?

I have a generalized php routine which generates xml results from different mySQL queries. The actual structure of the xml will vary depending on which query is used. (Actually, the number of columns will vary.) I've just started to explore using jqGrid, and I'd like to write a generalized display routine where I do an ajax call to my...

pass a whole html table back to server and replace the database table?

Hi all: I met a problem like this. Here is the scenario: if I have a database table A, which contains several columns, for example. Once the sever (php script) pass the database to web client, it's rendered into a HTML table. Now, here is some requirements for the client side. The user will be able to add/delete several rows from the ...

Lost with .net and jQuery

I'm convinced this has been asked before and have found quite a few resources on this topic but I'm still very confused and not sure how to proceed. I have a textarea whose data I need to send to a server and I need to capture the result which is a string. Here is my attempt: $(document).ready(function () { $('#output-box').hide(...

Fire next event up, but not after that.

For a page, I've been given a link wrapped inside a label, like this: <label for='checkbox_elem'> Links to <a href='somepage.php' target='anotherwindow'>another page.</a> </label> When the user clicks on the link in all browser, the page is spawned in a new tab as envisioned, but in Firefox the checkbox linked to the label is also...

Setting a cookie with jQuery Cookie plugin?

Hello all. I am trying to create a popup ad with a custom lightbox feel and I can get the popup to work, but it is not setting the cookie. Any ideas on what this could be? Since the code is so long, I am posting it as a GitHub Gist here: http://gist.github.com/501348 Thanks in advance all, Josh ...

Jquery animate from relative to absolute position? Possible?

Hi, I am trying to animate a couple of images across a screen. Ideally I would like the images to start out centered in the browser window (whatever its size) and have them move over to a an exact position (say 100px from top, 100px from left) of the browser window. My animation works fine, but only relative to the starting location. I c...

Loading content on a webpage only when a part of the webpage is displayed on the browser

Hello, in some pages i see when you arrive at the end of the page the page automatic loads new data. For example, some blogs when you get to the end of the page (that only loads 10 articles when you get there), the page load 10 articles more without pressing anything, so the questions will be, How do i execute/triger a php/javascript com...

Thumbnail Captions Single and Double Click?

Hello all, I know nearly nothing about this all so I turn to you for some desperately needed help. If you need to see any more code or info just ask and i'll answer asap. the following code snippet is what im using for a photo gallery on: http://luisposada.co.uk/home/photography-2/ The problem is the following the caption below the m...

HTML 5 canvas element with GWT Query

Is it possible to use GWT-Query to use the HTML 5 canvas? I searched and found libraries to create charts easily with jQuery but since my app is using GWT I'm a bit in trouble. This is what I found for jQuery: http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/ I don't want to p...

passing args when calling jquery function

hey, Im trying to make a call a jquery function and pass some args with it in the form of $('#button').mouseenter(exampleFunction(arg1,arg2)); function exampleFunction(arg1,arg2) The function works fine with no args written like this. $('#button').mouseenter(exampleFunction); function exampleFunction; but as soon as i add () to p...

how to get part of html in javascript?

Hi I have next <a href="#"> <ins class="jstree-checkbox">&nbsp;</ins> <ins class="jstree-icon">&nbsp;</ins> All </a> I want to get only "All" without <ins> When I use $j(this).parent().html() I get <ins class="jstree-checkbox">&nbsp;</ins> <ins class="jstree-icon">&nbsp;</ins> All but I need only "All" How can I get it ? ...

How to use jQuery's delay() as a sleep()?

Can jQuery be used as a sleep() or wait() function? Suspending the execution of the statements after the wait. I tried $().delay(5000) but there was no 5 second wait. Is delay() only used in effects? I am not looking for solutions which involve setTimeout delayed execution of another function or a CPU hogging solution. I want a sleep() ...

removing the # from window.location.hash

Hi. I have this simple script: $(document).ready(function(){ var $yoyo = window.location.hash; alert($yoyo); }); But I need to get rid of the # symbol as I'll be using the variable to locate div ids. I've tried using .remove('#') but that doesn't seem to be working. Many thanks in advance! ...

Fullcalendar not display return data

Hi everyone, I have a coldfusion cfc that i call to query events between the start and end date. Here is my script: $(document).ready(function() { var calendar = $('#calendar').fullCalendar({ events: function(start, end, callback) { $.ajax({ type: "GET", url: 'cfc/forecast.cfc?method=GetForecast&returnformat=plain', data...

How do I capture mouseover events on dynamically-added input HTML elements using jQuery?

I am dynamically adding input elements to a table with the id of inputDataElements. These input elements have the name deleteAction: function renderInputDataRows(inputData) { ...

how to do stuff before submitting a form?

Hi there: For example, I have a HTML form with several input buttons, <form action="/index.php" method="post"> <input type="hidden" name="hf" /> <input type="submit" id="apply_action" name="action" value="Apply"> <input type="submit" id="cancel_action" name="action" value="Cancel"> it's the current framework of a large web pro...

Accessing elements created on-the-fly jQuery?

i am using this gallery plugin but i can't access the elements created on-the-fly by the plugin. what can i do?? Thanks folks!! ...

jQuery not accessing DOM elements loaded via .load()

Hi all, I've read through some of the other posts and followed their suggested advice but to no avail. My function is called via an onclick event embedded within an element. Everything works fine. The data loads, but my focus event handler does not. "d-category" is a loaded element class. It does have multiple occurrences within the loa...