JQuery :: Accessing External Var?
Apr 6, 2011
I've been writing a script using the Flickr API. Basically it takes photos from a certain set and user and puts those in the fancybox format. The problem I have now is that whenever I want the set to change, I have the edit the javascript,. Instead I want to be able to change this in the html where it's being called.
[Code]...
View 3 Replies
ADVERTISEMENT
Jun 30, 2009
I have a web page A that loads another page B using an iframe (or anobject tag), the B page is an external page (it's not on my server)and contains a form.I want to be able to auto fill the form with pre-defined values. Injquery i think it's impossible due to security reasons,I hope I explained the problem correctly, if you need more info just
View 4 Replies
View Related
Oct 15, 2011
There's a script on my site that's included like <script src='somePHPfile.php?params... etcIt generates an image with some text in it and a few links.When I click 'view source' it just comes up with the <script> tags and nothing else. In Firefox, if I right click on the actual image and go to this frame > view source, I can see everything it's doing.
View 4 Replies
View Related
Mar 8, 2011
//-----10% Off Coupon-----
if (coupon=="N110"){
form.PRICE.value=-(moneyFormat(fTotal * .10)-1);
form.ID_NUM.value="N110";
form.NAME.value=" Craft Month Promo 10% Off";
location.href=location.href;
return true;
}
I want to replace the .10 with an external peice of data, so users can change the amount with having to open the script. Sorta like those early marquees' where the marquee text was inserted from a text file.
View 3 Replies
View Related
Sep 23, 2010
I have implemented a jquery tab, which displays a form with some fields into it. I want to access those field values through javascript that are displayed in the tab.
View 2 Replies
View Related
Jan 28, 2010
So im trying to create a simple file menu, so far I have :
$(function() {
//Rolling over menu items.
$('#FileMenu a').hover(function(e) {
[code]....
View 3 Replies
View Related
Mar 29, 2011
Currently I have one issue where i have defined my four input tags inside a div.Now the issue is arising that i need to separate them each using the table tag or either the nested div tag to make their width..currently my show is like this
<div class="row">
<input type="text" id="text2" name="text2"/></br>
<input type="radio" name="text2Radios" value="1" class="ToBeED"/>1 </br>
[code]....
View 7 Replies
View Related
Dec 4, 2009
I am running a get request which builds a table and inserts the HTML
$(document).ready(function() {
$.get("highleveltable.php",
function(data){
$("#widget01-table").html(data).dataTable({
[Code].....
I am having is accessing the HTML table after the request. It's as though the browse doesn't actually see it?
View 1 Replies
View Related
May 31, 2009
I'm trying to make Twitter OAuth and getting "Permission denied to get property" here is the code
[Code]...
View 9 Replies
View Related
Apr 2, 2010
In a project repeated blocks are identified by an <input type="hidden" value="x" /> field. To get an access to one of the block I wanted first access to that field. My first problem is there and I will explain it by a micro-project (tested with Firefox only)
Here is the HTML code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href = "index.css" type="text/css" />
<script type="text/javascript" src='Library/jquery-1.4.js'></script>
<script type="text/javascript" src='index.js'></script> .....
And here the javascript code wher is the JQuery question
//meta http-equiv content-type charset=utf8
function test(){
var $id = $('#curUnion').val();
var $objet = $('#toutesUnions > .pseudoFieldset').find('input[value=$id]');
var $test = $objet.val();
var $objet2 = $('#toutesUnions > .pseudoFieldset').find('input[value="1"]'); .....
With $id = "1" as shown by the Javascript debugger (in Firefox) where is the difference between find('input[value=$id]') and find('input[value="1"]')
Giving the alert result => undefined / 1
If you want to test the micro project you will find it in the Test.zip joined. How to access the immediate parent pseudoFieldset to get its html code?
View 3 Replies
View Related
May 9, 2010
Suppose I have the following HTML code:
<div class="one">
<a href="http://jquery.com/">jQuery</a>
</div>
<div class="two">
[Code].....
Basically I want to recognize which <div> tag was double clicked, and hide the corresponding link that is nested within that specific <div> tag.
The only way I can think to do this currently is to basically copy and paste a whole bunch of jQuery code for each <div> tag and it's sub-elements (links in this case).
View 2 Replies
View Related
Dec 5, 2011
I am trying to access an element in a page using ID using jquery in when the document is ready.But the problem is the length is always 0 even if the script tag is in the head or right at the bottom of the page. The element is seen rendered when I see it using FireBug.an someone point out where I am making a mistake accessing the element
$(document).ready(function() {
alert('Hello World");
$('#id').live("click", function() {
[code]....
View 7 Replies
View Related
Jun 7, 2010
it seems to be a problem if I need to access data() of the elements from another window, like for example $(anyElement,window.opener.document).data() which returns null when in fact there is some data actually stored. I heard that data is stored in the $.cache, which is window-related, so that's understandable, but how can I work around that?
Certain plugins that use $.data no longer work correctly because of that. E.g., I can't use linkselectmethods on linkselects located in the window.opener.document. Again, is there any workaround?
View 1 Replies
View Related
Aug 17, 2011
I would try retrieve some information from a database (and eventually graph it I hope!).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
[Code].....
But if I view the "contents" tab in httpfox I can actually see the data under <sourcetext> I require but there is an XML parse error.
<?xml-stylesheet
href="chrome://global/locale/intl.css" type="text/css"
?>
<parsererror>
[Code].....
The NS_ERROR_DOM_BAD_URI seems to be about cross domain issues but I'm working locally on the actual server so should I be able to access the data? Also why is there an XML parse error when I can see the exact data I want in httpfox's "Content" tab?
View 2 Replies
View Related
Feb 24, 2010
i'm trying to remove last cell in each of my table rows, but i don't how to use :last selector with $(this). here is the code:
$('#myTable TR').each(function() {
$(this).find(td:last).remove();
}
View 4 Replies
View Related
Oct 31, 2011
im really new to Ajax and JavaScript, but I did a lot in ActionScript 3 and C#.
[Code]...
View 6 Replies
View Related
Apr 21, 2011
I don't know what I'm doing wrong probably pertains more to Javascript than jQuery.Why can't I access the 'myVar' variable my clicking 'myButton2'?
View 5 Replies
View Related
May 13, 2009
I have the following script in my index.php file:
This works fine as long as get_labels.php is located in the same directory as index.php (root dir). If I move the script to a folder called 'includes' and use the following line: script:"includes/get_labels.php?json=true&", it doesn't work.
I've tried different variations:
What am I missing here?
Here's the plugin I'm using:[url]
View 4 Replies
View Related
Oct 8, 2010
I have 3 Jquery tabs on the form. Each tab contain same HTML Tables, I want to access the data in a Cell of a table in an active tab on the button click
in normal Case I use
var x=document.getElementById("searchResultTable").rows[10].cells;
referenceNo=x[2].innerHTML;// get the value in the Cell
alert( "x[2].innerHTML);
if i use this Code i get only the First Table data .All the Tabs Contains Same Table with Same Id and Name
View 6 Replies
View Related
Apr 9, 2011
I have a page that creates one unordered list from the contents of another list. The second list is created from a database query and is hidden on the page. I have written a JQuery function shown below that does an AJAX call which causes the hidden list to be created and that is working perfectly. The problem is that when the code following the AJAX call is executed it doesn't see the hidden list. The alert message displays 0 the first time. clicking on the Load button a second time results in the first list being displayed. If I click on the Load button a third time, the previously loaded list is displayed; click on a fourth time and the new list is displayed.
In other words, it takes two cycles to display the correct list. I am at a loss as to what might be the problem. Other than this issue the code does what I need it to do.
$(function() {
View 2 Replies
View Related
Jun 8, 2010
I have loaded a fragment into a div using the .load function. Is it possible to access the newly loaded content for editing?
$("#outfitTopDesc").load(""+itemTop+" #productTitle, #productDescription, #productPrice");
var linkDiv = document.getElementById("productArticles");
[Code]....
My alert dialog never apears.
View 4 Replies
View Related
Feb 22, 2010
i have input elements with a class "c10_3" created by this code:
$('#myTable :not(:first)TR').each(function() {
$(this).append('<td align="center"> <input class="c10_3" type="checkbox" /> </td>');
});
but now i can't access it with:
[Code]...
View 1 Replies
View Related
Jul 22, 2011
I am building a custom shirt design app which uses an Ajax form to allow a user to upload an image, and once it is uploaded it is automatically placed in the next empty <li> in their little gallery... once it is in the gallery they can click on it and insert it into their shirt design. It's all done with Ajax so they never leave the page.
Here's the code that inserts the image into the page once it is uploaded: (this works perfect)
$('#last').html('<img src="uploads/' + filename + '" />');
Once the image is in their gallery, the user can click on it which inserts it into their t-shirt design:
var selected = $(this).attr('src');
$("#container").html('<img src="' + selected + '" width="40" />');
Okay so say their gallery already has 5 images in it an they upload a 6th, the HTML looks like this on page load:
<li class="graphic"><img src="uploads/monkey.png'"></li>
<li class="graphic"><img src="uploads/ltdtee.png'"></li>
<li class="graphic"><img src="uploads/wordpress.png'"></li>
<li class="graphic"><img src="uploads/kitty.jpg'"></li>
<li class="graphic"><img src="uploads/steve.png'"></li>
<li class="graphic" id="last"></li>
The problem is that if I click on one of the first five, it works, the image gets inserted into the shirt design. But if I click on that last one, which now has the image I uploaded in it, it doesn't get inserted into the shirt design. Is there a reason why?
View 2 Replies
View Related
Jun 8, 2010
I'm dynamically creating an HTML table using JQuery. I'm not assigning id's to the tr or td tags in the table. The reason I'm not, is that it seems complicated, given that the table is initially loaded and then the user can add and delete rows. I'll also need to sort the table on demand.
I maintain the current row the user has clicked on as a global variable (curRow) using this...
$("#prodTable tbody tr").live('click', function() {
curRow = $(this)[0].rowIndex;
});
I want to do input validations on certain cells based on values in other cells in the row. for example, the value of cellA cannot be greater than the sum of the values of cellB-CellD. The question is, given a certain table rowindex, how can I access the cells in the row? Is this not a good approach?
View 4 Replies
View Related
Apr 28, 2011
I am using the tablesorter and tablesorterpager plugin and I really like it.However I need help with a problem I have. I use checkboxes for every rowin a table for selecting items.I also have a “select all” checkbox in the table header. When looking at the pager script I understand that the plugin completely removes all the table rows from the DOM and only renders the visible rows, the rest of the table is cached. So when using code similar to this:
$("#theTable"
).find("input[name='cbitems']:not(:disabled)"
).each(
[code]....
View 1 Replies
View Related
Nov 2, 2010
var attrIndexes = [];
$.get(queryString, function(data) {
attrIndexes = data.split(",");
});
after running this code the original variable is empty so something is wrong
View 3 Replies
View Related