I'm messing around with some jQuery stuff for a mockup and noticed some odd behavior. I'm hoping someone here can shed some light on it.
This is all mockup / test code, so please excuse the sloppyness.
So I have a table that I'm using in conjunction with the jQuery datatable plugin:
http://www.datatables.net/
My table markup is as...
I have an iframe on a page and there is a link I would like to open in a new physical window. When I use target="_blank" it just reloads the page in iframe with the new one.
I also tried this javascript:
$(document).ready(function() {
$('a[target=_blank]').click(function() {
window.open(this.href);
return false;
...
I have some code I was given in jQuery and I am really new to it. I need to use the jQuery.noConflict() method because I am using a Mootools framework as well. I just don't know where I should replace the $ symbols in the code for 'jQuery'. Any help would be greatly appreciated!
The code for it is at www.cshellarchitecture.com/test/j...
I have a bunch of media that I need to display in a UIWebView on the iPhone. I would prefer if the client did not have to download said media on booting up the application, but could just reference it locally and download it during the install of the application.
Is this possible?
...
Hi,
I'm creating a GWT wrapper round a JavaScript library. One of the JavaScript functions takes an anonymous object as its argument e.g.:
obj.buildTabs({ hide: true, placeholder: 'placeholder' });
On the Java side how do I create this type of JavaScript object and pass it to my native implementation?
At the moment, on the Java sid...
Hi all, I'm using a date field checker but I want to change the regex from DD-MM-YYYY to DD/MM/YYYY but I can't seem to get it working..
Here's the snippet of code:
"date": {
"regex": "/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/",
"alertText": "* Invalid date, must be in DD/MM/YYYY format"
},
I'm sure it's quite simple but I have no i...
i have the following javascript below after i finish an ajax query
all of my images have name="pic"
<script type="text/javascript">
function done() {
var e = document.getElementsByName("pic");
alert(e.length);
for (var i = 0; i < e.length; i++) {
cvi_instant.add(e[i], { shadow: 75, shade: 10 });
}
}
m...
Hello , i have the following script and i can't find out how to use the value inside car[0]['img'] inside this $('#img2').attr('src',car[0]['img']);
im a JS noob so please explain me .. why jquery wont accept the 2d array as string value and run the function , and whats the possible solution of my problem ?
var id = 0 ;
var car ...
Hi there,
My problem can be readily seen on the following to pages:
The correct version -> http://appstorereviewer.com/
The incorrect version -> http://appstorereviewer.com/page/2
As far as I can tell both pages have the same javascript in the header. What would cause the main page to work properly and page/2 not to initialize?
Pag...
I'm parsing an rss feed and each entry has a timestamp such as this: 2009-09-21T21:24:43+04:00
Is there any way to convert this date format to a unix timestamp with javascript?
I just want to be able to record the latest rss entry date, but I need to standardize the time to GMT time or Unix timestamp to do this.
...
Hi all, I have a form which I'd like to alert people if ALL of the fields aren't completed. I am currently using a jquery validation script for the required fields, but I need it to also let people know that not all of the fields are filled out before saving (they're not required fields, but just to let them know that the form isn't fini...
Hi Guys,
A bit of a noob question here...
I have a javascript function on a list of table rows
<tr onclick="ClosePopup('{ScenarioID}', '{Name}');" />
However, the {Name} value can sometimes contain the character "'" (single quote). At the moment the error Expected: ')' comes up as a result because it is effectivly ending the javascr...
Mostly I have just used XML files to store config info and to provide elementary data persistence. Now I am building a website where I need to store some XML type data. However I am already using JSON extensively throughout the whole thing. Is it bad to store JSON directly instead of XML, or should I store the XML and introduce an XML pa...
Anyone have suggestions for creating an extremely simple form verification field using jquery? I need to block basic form spam. Would love to have some type of 1+1= field that us used to make sure it's a human submitting the form. I don't have the abilty to put .php or .asp on the site so it would need to rely on jquery or some other met...
I need a combobox for an ASP.NET project, so I decided to use the Ajax Control Toolkit combobox (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx).
I don't want to use the postback as I don't want the page reloaded, but I need to know when the text in the textbox is changed so I can call out to the server to per...
Hi,
I have got the following code which reads the
div.photo.active
element's image src attribute, writes it to a variable which then should set it as the (tiling) background image of another div container.
All of this works well however when clicking on the a.next and a.prev button to trigger the display:block & display:none states o...
I built some shapes using Raphael, and now I wanted to put some text into them. But, it seems, from the examples, that a text node can only be attached to the paper and not svg shapes?
Is it possible to create multiple shapes with different text inside?
The example I was using was:
paper.text(50, 50, "Raphaël\nkicks\nbutt!");
...
what do people use when working with complicated framework - dojo , jquery etc
vs2008 plus ie has nice debugging
plain editor plus firebug is ok
but what about intellisense, are there any editors that can deal with these complex frameworks
any other 'must have' tools
...
Hi,
I'e converted my list of products to a JSON object and now I want to use the JSON object with auto complete functionality.... I want to use only the JSON object for auto completion.. please help me out guys.
...
Hi,
I am trying to set two side-by-side divs contained by a single larger div to equal column height. I am trying to use the following jquery script:
<script type="text/javascript" language="javascript">
function pageLoad() {
$(document).ready(function() {
setEqualHeight($(".instructionsPa...