Hi guys,
When I want some link to not do anything but only respond to javascript actions what's the best way to avoid the link scrolling to the top edge of the page ?
I know several ways of doing it, they all seem to work fine :
<a href="javascript:void(0)">Hello</a>
or
<a id="hello" href="#">Hello</a>
<script type="text/javascript>...
What is a good way to find out how long a particular $.ajax() request took?
I would like to get this information and then display it on the page somewhere.
ANSWER??::::
I'm new to javascript, this is the best that I could come up with if you don't want to inline the "success" function (because it will be a much bigger function) Is ...
jQuery is famous for cross browser compatibility but, which all properties or functions don't have a cross browser support?
I know one: ui-corner-all class won't produce rounded corner effect in any IE browsers.
...
Hey guys. I am somewhat new to jQuery and javascript in general. What I have is a CMS that I am upgrading. In doing so, I have started an option to delete multiple categories at once via checkboxes, which is processed via jquery/ajax.
In deleting the records individually, I could remove the row of the table once deleted, but now with ...
How would I make an associative array (or some comparable alternative) in jQuery AND send that array via ajax to a php page so that I can use php to handle it?
Something like this...
// jQuery
if($something == true) {
data[alt] = $(this).attr('alt');
data[src] = $(this).attr('src');
else if ($something == "something else") {
...
How I can read the content in a KMZ (not KML) with JavaScript?
...
Hello
I am trying to find a solution to a simple thing, that looks complex!
I have a textarea where users can update their status.
Underneath it I have a checkbox (ex: for the user to choose to tweet the status or no).
What I try to do is this:
1/ When the textera get the focus, the textarea expands, for that it's fine.
2/ When the t...
What is wrong with the following regular expression, which works in many online JavaScript regular expression testers (and RegEx Buddy), yet doesn't work in my application?
It is intended to replace URLs with a Hyperlink. The Javascript is found in a javascript file.
var fixed = text.replace(/\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|$...
Ok, so I'm working on a little photo gallery that will load a set of images using AJAX. Basically it will load a 'loading.gif' placeholder image, make an AJAX request to generate the thumbnail image. PHP page generates the thumbnail and sends a confirmation that the image has been generated and the path of it. My onSuccess should then...
Hi, I'm trying to put together a mobile web app using Apple's Dashcode.
I would like to use a Rounded Rectangle List as a menu interface for my users, however, I cannot seem to change the various rows' labels in a dynamic list.
Here is the javascript for my list:
var dayController = {
/* categoryList will display these items */
_row...
Can anyone point me in the direction of a jQuery slideshow/gallery plugin that matches these criteria (or can be customized to through setting its options)?
Can be inserted into a div - not a popup display
No border/thumbnails/filenames/buttons - when an element is being displayed, that's all you can see
I need to able able to set a ma...
I see a flash website with some eyecathing buttons with flash effect which I want to have with jQuery if possible here is the link of website -> http://www.goodthinking.com.ph/ .. any tips or sample if can this possible done using jquery code.. . thanks in advance.. .
...
Hello. I've got UpdatePanel with Div
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
<div class="pnlFind" style="display:none;">
</div>
</telerik:RadAjaxPanel>
wanna use js for showing this div
<script type="text/javascript">
function pageLoad(sender, args) {
if (args.get_isPartialLoad()) {
$('.btAddU...
I have just modify a snippet from this page: https://developer.mozilla.org/en/Code_snippets/Progress_Listeners
But with this code only STATE_START and STATE_STOP were fired. The rest did not fire at all
var target = this;
const STATE_START = Components.interfaces.nsIWebProgressListener.STATE_START;
const STATE_R...
What are the differences between these two types of namespace declarations? Is the first one better than the second one or vice versa?
(function($)
{
$.build = {
init: function()
{
this.attachEvents();
}
}
}
$(document).ready(function() {
$.build.init();
});
})(jQuery);
versus
...
For the love of pete I can't get it to accept any variables into to my SQL db. If I put static info it works. I can't seem to pass any paramaters over with scriptdata and it makes it more challenging because I'm using smarty template system on top.
I was trying to do this.
{literal}
<script type="text/javascript">
jQuery(document).rea...
i have a textbox in a jsp page
<td><label for="customer.fcDate" class="desc"><bean:message key="label.customer.fcDate" /></label></td>
<td>
<table><tbody><tr>
<td><input type="Text" name="customer.fcDate" id="customer.fcDate" style="customer.fcDate" class="SingleLineTextField" maxlengt...
Do people actually learn the core concepts anymore or are they "learning" from the library? Can you do the basic jQuery actions from scratch, cross browser, YOURSELF? Or would you be lost without $()? Hope this does not get closed. I am curious.
...
I am trying to create an interface using jQuery but having some difficulty making it work on different browsers although, what I am linking now should work on most of the Windows browsers.
See here: http://122.173.254.198/picasa_hover_experiment.htm
(Please note the problem part is programmed minimal and solution expected on same)
The...
I have a jquery-based single-page webapp. It communicates with a RESTful web service via AJAX calls.
I'm trying to accomplish the following:
Submit a POST that contains JSON data to a REST url.
If the request specifies a JSON response, then JSON is returned.
If the request specifies a PDF/XLS/etc response, then a downloadable binary ...