I am trying to populate a grid using a DirectStore. No data appears in the grid although I can see data in Firebug. I even tried to dump the data in a DataView to see if i am maybe messing up in the GridPanel but nothing got displayed there either. Tried using both JSON and XML readers to no avail.
Any idea what might be going on here?...
I'm using slightly modified sample code provided by the YUI team. When my source responds with something other than JSON (or just has a JSON syntax error) my browser (Safari) aborts script processing, preventing me from notifying the user there was a problem.
I'm definitely no JS guru, so this code may be a lot uglier than it has to be....
I'm adding new rows to a table dinamically, with this code:
tbody = document.getElementById('tbody');
tr = tbody.insertRow(-1);
tr.id = 'last';
th = tr.insertCell(0);
td = tr.insertCell(1);
But what I actually got are two TD cells. I want a TH, as you can see.
It says the tagName property isn't changeable.
How can I do this? Will I ...
Hello
I am a prototype newbie and am unclear on how to process multiple json objects returned. For example I would like to return a simple JSONObject map indicating the success/failure and also return a JSONArray that I can index and build an select:options from. Now each json object will be upt in the header with a different name. Ho...
Hello,
Does somebody know, how to call a lightbox from an custom link?
Example:
$('#price1 a').lightBox(); //in the header
Now I want to click a custom link somewhere on the page.
<a href="#" class="price1">Link to lightBox</a>
And images in a div (until link clicked they are not visible)
<div id="price1" style="display: none;"...
I want to create a jquery script that works like the iphones "slide to unlock" bar. i want to have 2 divs, the container, and the slider. i want to be able to drag the slider to the right, and when the slider reaches the very right of the container, have it do something.
i don't want to use jqueryUI in doing this, that library is too bl...
<input type="radio" value="1" id="baby">
I'd like to keep this code like that.
However, can I apply a CSS to it so that the "1" is not displayed to the user?
Edit: For some reason, it is being displayed, I don't know why.
I do have a CSS attached to it though.
...
Hello
How do you think Behance did their "Appreciate" button? (in the bottom of every page, for example: http://www.behance.net/Gallery/The-Jazz-09-Journal/349710)
You can only click once, after you click it says "thanks" and if you reload the page the button disappears.
If you delete the cookies, the button still doesn't show.
Anyo...
Hi,
I'm not even sure how to ask the question or even how to search for it.
I've browsed around and what i've got was some really hardcore regex
Basically, I have this textarea where I can input my list of emails like how google does it. Filter should be able to just ignore anything within a double quote and only picks up the email wi...
How would I get this array to be passed in as a set of strings to the function? This code doesn't work, but I think it illustrates what I'm trying to do.
var strings = ['one','two','three'];
someFunction(strings.join("','")); // someFunction('one','two','three');
Thanks!
...
Is there a way to listen for typing into the browser's "find" window in JavaScript?
I'd like to be able to reinterpret the search text from JavaScript. What do I need to add an event listener for?
...
I've built a Single-Sign-On system for our web network. It works like this:
User clicks a login link on the site he wants to log in to (the "Unsafe Site"). The unsafe site's ID is passed in the URL.
He ends up on the system's (called "RAS") login page. This is on it's own domain, and may in the future get HTTPS, so the user can see his...
I'm implementing Comet using the script tag long polling technique, based on this page.
One issue (that I don't think there's a solution for) is the "throbber of doom" - the browser continues to show the document as "loading" forever and leaves the Stop button on the toolbar enabled. This kind of makes sense, because the document is sti...
I've got a large HTML data entry table, implemented as a large matrix of input fields. I'm trying to implement a JavaScript-based feature that dynamically switches between a row-wise and column-wise tab order.
The approach I'm using seems to only work "once" in IE8. That is, once the tab index has been set using JavaScript, any subseque...
<script type="text/javascript">
var Average_rating = a number between 1 and 5
</script>
<select name="rate">
<option value="1" class="p_rating_star" />Not so great</option>
<option value="2" class="p_rating_star" />Quite good</option>
<option value="3" class="p_rating_star" />Good</option>
<option valu...
Hi all:
Currently I'm unit testing the following code:
if ($(selectedElement).innerText == 'blah')
{
// do something
}
with selectedElement being an anchor object selected from the UI.
In my test code, I have created a DOM structure which has that anchor in the proper position ready to be selected. The problem here is that sinc...
I want to place a function on input radio elements. These input radio elements are created dynamically by using Jquery.One dynamically-created(by user's click) input element looks as follows:
<div class="below">
<input type="radio" value="information" name="option0"/>
information
<input type="radio" value="communication" name="option0"/...
I noticed that the production version of jquery has one-letter function and variable name and was wondering how they achieve that. are there tools to create a production level javascript file from the one use during development? I am having a hard time figuring out how they make sure there are no mistakes, especially for an open source p...
I have un-installed and re-installed IE8 a few time and javascript will not run.
I have checked jQuery and numerous sites, and run simple examples like alert("hi"); nothing works. The ie8 developer tools under script debugging says
"Breakpoint cannot be set in this location, the code in the document is not loaded"
This also happens wh...
I am using jquery dialogs to present forms (fetched via AJAX). On some forms I am using a CKEditor for the textareas. The editor displays fine on the first load.
When the user cancels the dialog, I am removing the contents so that they are loaded fresh on a later request. The issue is, once the dialog is reloaded, the CKEditor claims t...