Plotting Graph using jQuery
Here is the situation I am in. My customer has a HTML page. On this html page he has a static html table with 2 columns. He wants to plot a graph by using values in column 1 on x axis and values in column 2 as y axis. I want to use google charts for this. The question is how can I use Javascript (JQuery) to parse the HTML table and then build the google chart URL? Thanks for your help.
Incredible Newbie Question - but take pity on me...
This is incredibly lame, I know, but... I need some "big picture" help. I am looking for an HTML search engine that allows a search to include attribute classes and other information contained within HTML tags. For example: <p class="title-chapter">Really Exciting Title Name here</p> <p class="angryVGN">Angry Comment here</p> I would like to be able to run a search to do the following: "return all text contained in a <p> when the <p> class="title-chapter". So in this case it would return "Really
Please Stop My Cascading Function
Hey guys, I have a function the opens a "ul" when the user clicks on the expandSearch div. The only problem is that the "click" is being bleeding down to the "li's" as well. I only want the click function to happen when .expandSearch is clicked not it's child element. How do I stop the trickle down effect? $('.expandSearch').click(function() { $(this).next().toggle('slow'); return false; });
How to append a element?
Hi,there is a function "getTable(datas)", it will return a HTML element like "$("<table><tr><td>data1</td><td>data2</td></tr></table>"); now I write a function, wanna get html tree like "<table>...</table><table>...</table>": getHtml = function(sourcelist){ h = $(); for (s in sourcelist){ h.add($.getTable(sourcelist[s])); } return h; } it seems not to work, How to implement in the right way? thanks in advanced.
Documentation license
Hi! Can I use the code from the site of Jquery, example, a code from http://api.jquery.com/animate/, or http://api.jquery.com/ready/ in my website?. Can I use code of this pages or use other codes of the documentation on my website? If I can, I need to put some credit in the source code of my page? Sorry if my english is wrong, i´m from Brazil. Thank you!
Newbie Question - Events on Link clicks
So, i have been tracking jquery for a while, but I figured I would finally dive in and try it out myself. I have the following situation: I have a web analytics tool that tracks HTML page loads. But, any click that is not to an HTML page is not tracked. I would love to have something that basically calls a JS function systematically whenever links with specific extensions are loaded, or right clicked (think PDF, right click to save locally). Ideally, the list of extensions would be easy to control.
Can I or is there a way to have a image carousel function dynamically?
Hello I am just getting my feet wet with jQuery. I am under a tight dead line right now and I am struggling to find a way to do the following....I am looking at this plug-in here and would like to know how can I make it dynamic. Meaning how can I make it work to pull images in say folder instead of having manually update the code with 30-40 pics every month? thanks theDogger
$.post returns data but, can access values
Hi, I'm trying to get some data using the $.post method. the alert() indeed returns a json formated list of the correct values however, I am unable to access the individuals values. From the documentation, it says you should be able to do a data.variablename to access the individual values. This returns an "undefined" error. What am I doing wrong? How do I access each individual element of the data? Are 2d arrays possible? I am using the json_encode() function in php on the handler. $.post("ajaxbridge.php",$("#modhostnetform").serialize(),function(data){
toggle not working in IE6
Hi Everyone I have been able to get jquery to toggle the submit buttons except it is now not working in IE6. Can someone please take a look at the code below and let me know how i can get this to also work in IE6 please... unfortunately my client wants it to be IE6 compatible! //hover effect onmouseover submit buttons only// $(".submit").hover(function(){ $(this).toggleClass(".submit:hover"); }); //end hover effect// Thanks Jess
onmouseover event
Hi I've been using this on all my form buttons and was hoping to do it via jquery. Can someone please tell me how i can go about doing the exact same thing with jquery please. Here is what i have so far... <input name="submit" type="submit" value="myvalue" class="submit" onmouseover="this.className='submitHover'" onmouseout="this.className='submit'" /> this is the css part. .submit { font-size:11px; font-weight:bold; color:#fff; border:1px solid #008422; background-color:#008422;
Prototype in jquery
Hi..........Everybody I am newer in Jquery.... How to create the prototype object and custom object in Jquery.
Help loading the content of an external page/div with jquery functionality into a div
Hi, im brand new here, and indeed to jQuery itself. So sorry if this is really obvious, but i just cant figure it out and i need help sorting it. Im happy to do the work and research etc, but not too sure what i should be looking up. My problem is this, I have a page with a jQuery navigation, with animated submenus, and want the links to load external content into my #main div without refreshing the whole page. Thats ok, ive kind of figured that out for static content i think, but the problem occurs
Getting start
HI.....Everybody I am new in jquery..I don't have no idea about the jquery validation( calsses and functions) ..somebody help me. Thank you
Help! Where Have I Gone Wrong with Conditional Statement
Hi Hope you can help a less than newbie! We want the code to do the following: 1. Call external php file "productfile.php" 2. Check if "sp_field" value exists in the external php file. 3. If it exists then show "sp_field" 4. If product doesn't exist then don't show "sp_field" Code we have so far that doesn't work is :- <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.get('http://www.thewebsite.co.uk/productfile.php?linkid=<?php echo $CustomFields->field('sp_field',$listing,false,false);?>',function(available)
Need help appending link with generated values
First, some background: I'm trying to create links for replying to replies in a Movable Type-powered forum. I'm going for a similar effect to Digg's comments, where after two replies, they become flat. To do this, I need to get the ID of the parent comment. You can see below that I'm able to get it, and it gives me the right value when I alert it. The problem is getting that ID into the onclick for the "reply to thread" link. Each page will have multiple instances of this, so I need to take that
Simple html page with Slider
Hi all, Im pretty new to jquery and javascript. To get started with a small project of mine I need to add a slider to a html page. This is the code I have. I was hoping it would show a slider on my page but it doesnt. Can anyone tell me what is wrong? <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> <link type="text/css" href="css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.3.2.min.js" />
Off Topic: Is XHTML a joke?
This is completely off topic, but I really would like to hear your opinions on this! So, I wanted to test the XML parsers in modern browsers (FF, Chrome, Safari and Opera). I configured my local server (IIS) to serve .html files under this MIME type: "application/xhtml+xml". Next, I made a simple XHTML page containing only one paragraph. I placed this file in one of my web-apps that are hosted by my local server, and requested the file with Firefox. The page loaded successfully and I used the Web
how to handle conflict with prototype
Hi, I am using protype for valadation and Jquery am using for calendar, Here is my script , where i am doing wrong..pls help me...this is my script... <!-- for validation --> <script src="v/scriptaculous/lib/prototype.js" type="text/javascript"></script> <script src="v/scriptaculous/src/effects.js" type="text/javascript"></script> <script type="text/javascript" src="v/fabtabulous.js"></script> <script type="text/javascript" src="v/validation.js"></script> <!-- for Jquery calendar
Help with an image slider & load();
Hi I'm new to jquery and am trying to figure out a problem. I've spent the last couple of days scratching my head over it, and figured maybe an expert can help me. My Goal: to load pages of content into the main page when a link is clicked, THEN create an image slider based on the content that was loaded. So far I've got this tutorial: http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/ It uses the load(); function. It seems to work fine for loading other
can't import jQuery into Lotus Notes library
Hello, I am trying to create a javascript library in Lotus Notes , I am pasting in the jquery code into my library but it will not compile. is this a jQuery syntax error or Lotus Notes error you think? I get the same problem with the 1.4.2 release of jQuery see attached image
jquery post
Hi, I am new to jquery and ajax. I have made popup with j query.all things are woking fine. Now I have to get value at my popup from a js function.my popup appears but have no value in post.I came to know that my values are posted to server(from alert in success), but how to retain these value at server so that my popup may show it ? I have 1)myajax.js function fwdId(uclk){ $(document).ready(function(){ //alert (uclk+"uclk"); $.ajax({ type: "POST", url: "update_process.php", cache: false, data:"elementId="+uclk,
Need help on using Jquery to use ajax with a onchange function.
Hi, I am trying to make a drop down menu of country and state and city. I need to once country makes a onchange event. I want it to grab that country value then use ajax post method to a php file that will populate the html code into the states drop down menu. Then the same goes with the state drop down where once it's onchange event is active that it will use ajax to submit the country and state name to another php file that will then do the query in the database for the city names then return
Array and If
Hi erverybody, I have a small form, where the user can select how his route to the destination should be (car or train). <select id='item_select' name='item'> <option value='0'>- please choose -</option> <option value='1'>Car</option> <option value='2'>Train</option> </select> Depending on above selection, a window pops up with the direcetions in it. The Problem: I don't know how to do a simple if () function with this array. With the example below, always both popus
Need Pointers to Get Started
Hi All, I'm in the process of launching a new site, and I'd like for my home page to have an interactive banner. I've seen what I'm looking for on a couple of other sites. I'm new to jquery and would like some pointers on how to get started with building this. Right now I'm not even knowledgeable to know what to ask. Here are the two sites that I can reference. http://www.usatriathlon.org/ http://www.theandrewsinstitute.com/ The main banner on those pages rotates through images, and all of the content
Help with jQuery Cold Fusion Tutorial
Hello! I am new to jQuery and have enjoyed immediate success with some of the basic UI effects. My current goal is to integrate $.ajax into a small ColdFusion app. I found the link to the demo (below) in the jQuery Tutorials, but have not been successful in re-creating the demo on my local cf server. http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm The first thing I noticed is their jquery.js is not the full current version. Compare: <script language="JavaScript" src="http://www.365labs.net/cf_jquery/jquery.js"
Question about generation data for slider
Hello! There are some items, > 12. For example, 21 items. <div class="item">1</div> <div class="item">2</div> <div class="item">3</div> ... <div class="item">21</div> I need generate (every <li> is slide with 2 lines): <ul id="slider"> <li> <div class="item">1</div> <div class="item">2</div> <div class="item">3</div> <div class="item">4</div> <div class="item">5</div> <div class="item">6</div> <br clear="all" /> <div class="item">7</div>
Clickable images in drop down menu??
I'm trying to figure out how to include clickable images in a drop down menu, similar to what they have under "Innovation" at http://www.ge.com/ Anyone know of a tutorial out there?? TIA
Hide/fadeOut a div in table
Hi there, I'm using the following code for my tab navigation (which works really well): <script type="text/javascript"> $(document).ready(function () { //When page loads... $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function () { $("ul.tabs li").removeClass("active");
jQuery form question
Hi! I'm quite new to using jQuery, so i'm hoping someone will be able to help with what i hope is just a simple question! Basically, I'm working on a site that has a search at the top. Search consists of 2 select boxes, one for counties and then another for towns. These currently pull their data from a MySQL database. What I'd like to do is once the user has selected a county, the second select box would populate with the towns in that county. All data should be pulled from the database. I'm not
Jquery function scope after load()
Hi newbee to jquery here so forgive me if this is simple.... I have a php doc reports.php inside of which i have a div element which gets loaded via jquery .load(listreports.php); Inside the parent document (reports.php) is some jquery functions that i want to access from within the loaded div (listreports.php). What/how is the best way to do this i have read things on livequery and event delegation. Is there any way to refresh the whole document after the load so that the jquery from both docs
problem with tabbedpanel
Hi All, I am using struts2-jquery-plugin-2.0.0 tabbedpanel to display the tabs. Everything is working fine but the thing which I want to do is once a user selected a tab its content gets display if user clicked it again nothing happened, to reload the content of selected tab user needs to navigate some other tab than only he can make it. I want to reload the tabs content on each user click without navigating some other tabs. Any kind of help is appreciated. Thanks
Using jQuery from a popup window
I pop up a child window to present a form that lets the user specify options about something they're ordering. The form then needs to be applied to structures on the parent window, so I have code on the popup like window.opener.document.form1.text.value = txt.value; I'm just wondering if jQuery will let me access these window.opener elements easier. Thanks for any suggestions.
Resetting contents of the table cell on Cancel or Escape.
Hello, I am working on a project and decided to use some JS, for the first time in my life. So far it's been pretty painful :) Anyway, I am using jQuery with jEditable and jQuery UI confirmation dialog. What I am trying to do, it to restore contents of the table cell if user hits Cancel on jQuery UI dialog, or just hits Esc. jEditable has "onblur" option that i can set to "cancel", and it works if uses clicks out of the field, so I am trying to achieve something like that with jQuery UI, because
Error Output to different Place
Hi, I managed to get jQuery to work well. I have a CSS that puts the errormessage and the style with an image. I really would like to have the image to the rigth of the field, but the errortext should be above or below the input label. The form looks like: <form method="post" class="cmxform" id="formName" action="form.php"> <table border=1> <tr><td colspan=3 class="status">Error should be here</td></tr> <tr> <td class="label"><label id="lusername"
Getting Null Results after function call jQuery/JSON
I'm using JSON/jQuery to pre populate a drop down menu. What I want to do, is once I select a plan from the drop down menu and click submit (go button), to get the details about the plan. I'm missing something though. The drop down menu get's pre populated, but I don't get anything after clicking go. I check the functions and it seems that in the DoPlanSearch() i get the alerts showing the newly constructed URL that gets me the correct JSON. But not sure what happens once the data is processed after
Javascript error has me completely stumped - it is most likely very obvious
Hello, I am new to jQuery so please excuse me if the answer to my issue is very obvious - which I have a feeling it will be. I used jQuery to add some roll-over drop down menus to the top navigation bar of my website. Everything was working fine and the changes were pushed to production. A few hours later though, we started getting a javascript exception from within the jQuery library while using Internet Explorer on both development and production! I have searched and searched and have no
IE problem
Hello! I'm working on the following site: http://vcdportfolio.com/ It is working great in Fire Fox and Safari but IE does not seem to recognize the jquery code. I've looked up a few things online, and tried to place the scripts at the end of the page, but can't seem to figure it out. What am I doing wrong?
ajax callbacks are not fired
look to this code: http://gist.github.com/365771 The second $.ajax() works fine. The first never fire the callbacks. Why? Both is receiving data successfully. Thanks.
IMG SRC
Hi, I've just started using JQuery, and need some help. Is there anyway to get an img src from within the currentl active ul tab? I need to combine the image src with the tab filepath. I'm getting the file path like so $( "#tabs" ).tabs({ show: function(event, ui) { var url = $.data(ui.tab, 'load.tabs') var locarray = url.split("/"); delete locarray[(locarray.length-1)]; var arraytext = locarray.join("/"); alert(arraytext);
Can't callback even raise a alert
Hello i m new in jquery. i can't callback even raise a alert. {literal} <script type="text/javascript"> $('document').ready(function(){ getToken(); }); function getToken() { var posturl = 'http://10.121.1.68:8080/pay/api/cif/token' $.ajax({ dataType: 'jsonp', data:({id:$('#mer').val()}), url: posturl, jsonp: 'jsonp_callback', contentType: "application/json; charset=utf-8", success: function(){
Next Page