Hi,
I'm trying to use jquery dialogbox for each returned records from the mysql query. But when only the first one works and the rest do nothing.
Is it possible to use the dialog box for each record and let's say to bring up their details for editing?
Many thanks in advance.
...
So, I have to determine page type in a proprietary CRM, using JavaScript. The only way to determine the page type (that is, the only consistent difference on the front end) is by examining a script tag (out of many list) whose src attribute begins with /modules/.
In a list of a dozen or so script tags in the header, each page has a lin...
I'm trying to dynamically create a div to show error messages using jquery. I'm able to use append() to create the HTML easily enough, but I need to call a php variable in order to display the content. If I just try adding php opening and closing tags like I would ordinarily, the append method doesn't behave as expected and outputs a see...
I'm not sure how to post this question without including half of my sites code, but here goes.
I have a site with a Subcontract Form, a Company Form, and a Contact Form. From the subcontract form, you can create a new company and/or a new contact via buttons which open jQuery dialogs and post the company or contact information. From t...
I would like to insert a youtube video and play it right away, I am not quite sure how to get this to work with jquery on live click. Any ideas?
var youTubeVideo = '<object width="370" height="260"><param name="movie"' +
' value="http://www.youtube.com/v/[ID]&amp;hl=en_US&amp;fs=1?rel=0enablejsapi=1&p...
when i click the picture that is displayed in the detailsView ImageField, the jquery lightbox pops up, but does not show the picture. it shows a red x in the middle of the lightbox. the same thing happens with the asp:Image control shown in the code below. The picture is stored in a SQL database Image datatype. Using master pages.
<...
Hi! I use this script to parse an XML file with jQuery, but it run only if I have the XML file in local server. Do you know how can I parse an XML file on remote server?
<script>$(document).ready(function(){
$.ajax({
type: "GET",
url: "http://www.myotherwebsite.com/folder/myfile.xml",
dataType: "xml",
success: function...
I'm using Jquery 1.3 and this is the code i've isolated the code that throws an error in firebug as follows: "G is undefined"
var product = $("#id :selected"); // This is a dropdown
var prodTxt = product.text(); // Returns string as expected
var price = prodTxt.match(/\$[0-9]{3}/); // Commenting this out...
Hi guys,
I'm looking for a (ideally jQuery plugin) Javascript library that will let me provide datetimes formatted in whatever standard format (ISO 8601 seems to be the most commonly used among libraries that do something similar, like timeago and Prettydate), and have them transformed into strings like:
Wednesday, 5:00pm
Tomorrow, 9:...
What's wrong with this code? I'm not able to validate 'data':
$.post('http://localhost/do.php', function(data)
{
if (data == "success")
{
//do something... but this line never hit!
}
});
I also tried,
alert(data);
but got an empty alert box!
the do.php on success, echo's "success"
echo "success";
ok.. here is the co...
Hi there,
I want to be able to include a dynamic chunk of HTML in a page using javascript.
I wrote a servlet which returns a chunk of HTML, http://mydomain.com/dynamic.jsp It produces some HTML ( minus head, body tags ) like this:
<div>
Current Weather : 89F
</div>
How can I get that dynamic chunk of HTML into the page using ...
Hiya,
On the front page of our site using flash I have built a smooth zooming in to the image as you can see, where the focal point moves in and then stops after a few seconds. I am wondering if there is a way to do this in JavaScript (ideally JQuery), as I would like to implement it later in the site but without flash...
Thanks in ad...
So I need to make a a cross domain request where the response is not JSON formatted, so I cannot use .getJSON. .get obviously doesn't work because it is a cross domain request.
I came across this (Read this) when I was googling and it seems it should work for what I want to do (which is do a cross domain call that isn't json formatted ...
Hello all,
I've a HTML table on my JSP page, that I want to be exported to Excel on a button click.
What would be the best way of going about this ?(For ex., how would I do this using may be a jQuery function.)
Any code examples for demo. purposes should be great.
Thanks,
Pritish.
...
I have the following code:
$('#form1').live('submit.check', function()
{
//code...
});
Now when I try the following:
$('#form1').unbind('submit.check');
that event it still bound to the form. Is it not possible to unbind an event the that used .live() to bind it?
...
<updatepanel1 >some conent</updatepanel1>
<updatepanel2 > Dropdown </updatepanel2>
I have a dropdown in update panel2, which gets some data from the database on the selection index change.
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);
function endRequestHandler() {
$('select').c...
How to generate popup while displaying validation error? For example for <h:inputText required="true"> if I skip and press submit button I want to display <h:message> in a popup. Is that possible in JSF 2.0 or using jQuery or any other?
...
Hello,
What is the best way to minify jQuery with other js files. My goals is one request for all my JS files. I have about 6 other js files that I would like combine with jQuery and the jQuery UI. When I leave the jQuery library and UI library out of the minification file it is fine. So I have three requests:
jQuery library
jQuery UI...
How can I make an entire jqGrid disabled/readonly?
I have a page with a logical "edit section" which I show when the user selects something to edit, and hide when the user is done editing (save or cancel). While the edit section is shown, I disable several other elements on the page. I would like to disable their ability to click in t...
My site links to a paypal buy it now page that loads slowly. I would like to display an animated gif after the user clicks the paypal embeded link until the new paypal page loads.
Thanks in advance.
...