Hi, once again, IE is proving to be the biggest pain in the world, on headset.no, we have a small blue search field, when you type for example "jabra" into it, it should generate a div that gives you suggestions underneath, this works perfectly in Chrome, Safari, opera and FF, but of course, IE has another idea of what to do with it.
I...
To parse JSON, I believe the best method is to use native JSON support in browsers.
I was looking for a good way to parse JSON in cases where native JSON support is not available.
When i looked at the code in http://www.json.org/json2.js, what i understood was it first checks whether the data is valid JSON using the regex:
if (/^[\],:...
How can I show different IMGs in my HTML in a UIWebView, based on the iPhone's orientation? (Sorry if this is a trivial question...)
...
I normally use ASP.NET MVC 2, but there were some problems with it, so I began to work with ASP.NET MVC 2 + jQuery and everything works. But there is one problem, jQuery doesn't load my reponse. On the ASP.NET MVC side I'm redering a partial view and I also get the respone on the client, but nothing is rendered. How can I solve this?
He...
Hi
Further to my previous post ...and thanks so much for the responses ....
This is the real situation I'm trying to resolve.
Just need to call a swf from javascript to move the swf on to another time frame.
AS3
Import flash.external.ExternalInterface;
function moveOn (frame:int ) : void
{
gotoAndPlay (frame);
}
ExternalInterface....
In the below code how does passing bar as
function (n) { return n; }
to foo evaluate to true in the if block?
function foo(bar) {
if (bar) {
// true
} else {
// false
}
}
This has me puzzled so any help is much appreciated.
...
I'm developing a Firefox extension that should work with Google Docs editor. Is there any way to retrieve the content of the opened document?
...
On my page I have a table, and this table has a list of items plus an edit button.
When the edit button is clicked, I want to fill the form with the information specific to that entry in the table. All the information is stored in a mySQL database and can be accessed by PHP.
I need my javascript on the edit button to get the table row ...
I want to Display news and events in a html page such that automatically they are rotating but on mouseover they stop? Please give me any article link related this?
...
I have some code that I am using to count characters in an input/textarea and display a countdown on my page. My problem is that I want the ability to define which div I want the counter displayed in.
How can I add a variable to this code in which I can define which div I want the counter to appear in????
Help me geniuses!!!
(function...
I have a feeling that I am going to ask a "stupid" question, yet I must ask ...
I have 2 virtual machines.
I would like to copy an instance of an object from one to another,
Is it possible to copy the bits that represents this object in the VM's heap, send it to the other VM, like that the other VM just need to allocate the bits in it...
I am developing a FireFox extension
when I do xhr to the Secure server , particularly POST a data
it gives a status 500, and following mesage:
onsip.highrisehq.com : server does not
support RFC 5746, see CVE-2009-3555
How can I by pass by It? I assume that this is because of the Server misconfiguration, but I can't wait till so...
I have a PHP script that I'm calling with the .post() function in jQuery. If everything goes well, it outputs "WIN", otherwise it outputs whatever database errors or whatever else it gets.
$.post("myscript.php", {key: "value"}, function(data) {
if(data=="WIN") {
// the stuff that I want it to do that it won't do
} else {
...
Hi.. I think I know this is an IE bug ...
I need to add new row to an HTML table at the exact position.
(don't want insertRow(index) cuz this looks like gonna be better for some other reasons)
function AddNewItem(td) { ///td comes from button at the HTML code, <input ... onclick="AddNewItem(this.parentNode)"
var grid = GetGrid();
...
Hi,
I'm trying to devise a form that will allow me to input multiple contacts. It's a pretty long form so far and I want to keep it as short as possible. I was thinking of just having one set of fields for contact inputting which will add this contact to a list box or gridview but I'm not sure that is the most elegant solution. Could...
So, as sort of an exercise in learning, I am trying to port a site I was working on for someone, written in PHP, MySQL and CSS, over to Ajax (Specifically, really, just adding Javascript so that the page is dynamic instead of needing to constantly reload).
Unfortunately, I have some scripts I'd like to keep as PHP (for instance, a scrip...
I have the following if, else if, else construct and I am just curious how I could convert such as construct into a switch statement.
var emailSubject = email.subject.toLowerCase();
if(emailSubject.indexOf("account request") >= 0){
//do acct req
}else if(emailSubject.indexOf("accounts pending removal for") >= 0){
//do accou...
Hi guys,
I need some help with jQuery syntax.
I'm trying to modify the opacity effect in the code below to something like fadeIn.
jQuery("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
Thanks in advance for any help.
Sam.
...
in my html:
<head>
<link href="/prop-view.css" media="screen" rel="stylesheet" type="text/css">
<script src="/javascripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
</script>
<script src="/prop-view.js" type="text/javascr...
I'm just getting my feet wet with jQuery after beginning to read Sitepoint's "Novice to Ninja" but, as always, I'm left wondering if there's a better way to write the code I've come up with. As it turns out, the answer is almost always and emphatic "yes."
All these "if" statements seem ridiculous. How can I do this better? What funct...