I was playing with $.getJSON in the following way to receive an alert but without luck.
Here is the code,
<script type="text/javascript">
$(document).ready(function() {
var url = "ticker.js?callback=?";
$.getJSON(url, function(data) {
alert(data.price);
});
});
</script>
And the ticker.js ...
Hi all,
I have something like this on a $.ajax() success function:
var popup = window.open('',titulo,"menubar=0,location=0,height=500,width=800");
popup.document.write(response);
popup.print();
My problem is that some browsers block popups, and my only need is to print.
I've found jqPrint, it is a jQuery plugin that prints from eleme...
Hi Guys,
I am trying to load 2 scripts in jquery only once a #element is clicked. Currently, I am trying to use:
jQuery("#element").click(function () {
jQuery('#elementcontainer').load('/js/jquery.script.js');
jQuery('#elementcontainer').load('/js/jquery.script2.js');
});
The problem is that the scripts load eve...
in my application i need ... if a user click on combobox it will work as usual like show all the list and when mouse is not on any of item or on combobox...then that combobox should take its default position .... that mean it must compress again
in jquery or javascript..you can post your answer ...
i just want solution :(
...
Hi,
I'm trying to do something but I'm not sure what it's called or what I should be looking for.
I want to do it in jquery.
Basically when you're in an input box, if the user enters a character I want the caret to automatically jump to the next input box. Banks usually have it.
What class does this or what should I be looking for?
...
Hello,
I'm using the following peace of code to do so ajax magic on a page and it works alright for any browser - except, you guessed it, lovely IE6
jQuery.ajax({
type: "GET",
url: jQuery("#filter_form").attr('action'),
data: jQuery("#filter_form").serialize(),
dataType: 'script',
success: function(response) { /...
I want to create external JS file for the form and post that data using AJAX.
The simplified HTML looks like:
<form action="" id="message" name="message" method="post">
<input name="message_subject" type="text" id="message_subject" class="message_wall" />
<textarea cols="50" rows="5" id="message_text" class="message_wall"></textarea>
...
According to the discussion comments here: http://api.jquery.com/append/ the .append() of a script evaluates the script, then discards it. IF the script adds jQuery behavior such as for example:
$('#mything').click().addClass('hasclass');
is that event management retained (espcially if complex chaining gets added), or discarded, and...
I have a jqGrid with lots of data loaded in it.
I want to provide three buttons.
Clicking on each button the grid will be prompt user to enter a number and based on that input it will search the grid.
Please tell me if jqGrid supports this.
...
I there an option to close cluetip when the mouse is of from the link? There is mouseOutClose option but it doesn't close cluetip if you don't hover the cluetip itself first.
Here is an example:
http://plugins.learningjquery.com/cluetip/demo/ - the first link under the jTip Theme
...
I am calling pages via AJAX in jQuery.
The content of these pages needs to be filtered so that i only grab a certain DIV class. In this instance 'Section1'.
This filtered data needs to replace the same data on the current page in the DIV of the same class.
I currently have this but it is not really working for me:
$("#dialog_select"...
I am trying to find the correct jquery plugin to validate a few input elements on my page. I would like to be able to have the validation happen on the fly and if any of the validations fail it will call a function. I have been researching this and I can not find a good example on how to do this or what plugin to use. I ultimately just w...
Hi I have written a function that is used to change text in a table cell, the table displays members of a team but is not in a readable format, so i have to convert the string output into a readable format.
This all works fine however I was wondering if anyone could help me re-factor this function as it seems abit crude ?
Jquery Code...
Hello Guys,
I need to implement Facebook like AutoSuggest texbox using jquery in my asp.net application.
I googled a lot about this but only found PHP links :(
Any pointer or suggestion will be really helpful. thanks
...
Hello,
I have a websites with three jQuery carrousels. I have a problem with two of this carousels. I used the jquery carrouselsplugin. You can see the website with this link
You see in the middle of the website, two jquery carrousels. The name of this carrousels are "zoek op productgroep and "zoek op merk".
But what is now the proble...
I am using ListView and i want to find the LinkButton using JQuery how is it possible
<asp:ListView ID="dlSearchListView" runat="server" >
<LayoutTemplate>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</LayoutTemplate>
<ItemTemplate>
<div class="right">
...
Hi guys
I have made a hidden DIV containing a flash-movie, and a button which display the layer. When the Flash is finished, I would like it to hide the DIV again.
Flash CS4 AS2.0
I couldn't find any solution on the web that does it. Does any of you know where, or know a solution?
Thank you in advance...
...
I have an HTML select that looks something like this (values are fake)
<select size="40">
<option value="1">What would you do if I sang out of tune,</option>
<option value="2">Would you stand up and walk out on me?</option>
... more
<option value="156">Lend me your ears, and I'll sing you a song,</option>
<option sel...
I am trying to use the jquery "CSV" plugin, as documented here: http://code.google.com/p/js-tables/wiki/CSV
According to the documentation:
// Convert CSV data into array of arrays
jQuery.csv()("1,2,3\n4,5,6\n7,8,9\n"); // = [ [1,2,3], [4,5,6], [7,8,9] ]
But when I attempt to do something similar, it just seems to treat the "\n" as a...
How can I pass a string value by reference in javascript.
I want this kind of functionality.
//Library.js
function TryAppend(strMain,value)
{
strMain=strMain+value;
return true;
}
//pager.aspx
function validate()
{
str="Checking";
TryAppend(str,"TextBox");
alert(str); //expected result ...