jquery

JQuery Ajax control

Everybody hi. There is a problem with my own AJAX library, that I can't solve. I have some block (#ajax-loading), that has events: $('#ajax-loading') .bind('ajaxStart', function() { $('#ajax-loading').show(); }) .bind('ajaxStop', function() { $('#ajax-loading').fadeOut(150); }); For running AJAX I have special method: run: fu...

JQuery get element from a string problem

Sorry for such a simple question but I can't seem to find the solution. I am trying to fade in and out some divs. Divs have an ID of "div1", "div2", "div3". My code is: var Divs = new Array("div1", "div2", "div3"); I want to fade out one div and then fade in the next on top of it. I have a setinterval that runs every 5 seconds and...

use custom border.

is there any way to use custom border by css or can make by JavaScript or jquery. i want to use a different style of border. like we use border-style:dashed; ...

Trouble retrieving inner text from XML node using JavaScript

I'm reading an XML document using JavaScript & jQuery, and need to extract some text from inside a node to save into an array. The structure of the XML is as such: <C> <I> <TEXTFORMAT> <P> <FONT>Here's the text I want</FONT> </P> </TEXTFORMAT> </I> </C> Everything I've tried so far returns nothing so I ...

.uploadifySettings not working as expected

I'm using uploadify and the function to change the settings doesn't seem to be working. I'm basing my code from the following example: #(‘#someID’).uploadifySettings(’scriptData’, {‘name’ : some.val()}); So here's what I'm doing: // INITIALIZATION $("#"+elementId).uploadify({ // other data "scriptData": { "token": token ...

OpenSocial create activity from submit click

Hi I'm "playing with OpsnSocial" and think I get a lot of it (well thanks to Googles' bits) but one question if I may. Creating an activity Lets say I have a form like this (simple) <form> <input type="text" name="" id="testinput" value=""/> <input type="submit" name="" id="" value=""/> </form> And I want to post the value of the t...

How do I make fadeOut blocking in JQuery?

Pretty much as the question says, I have some code running on an interval: $("#blah").fadeOut(2000); $("#blah2").fadeIn(2000); I'd like to fadeOut, then fadeIn, rather than have both going simultaneously. Is there an easy way? ...

jQuery Toggle switch images

Hi Guys, I have a situation where I am not understanding jQuery's Toggle. I have two buttons, both of them open the same content and when you click on either button the content should open or close and the attribute changes the button from open to closed. (So both buttons do the same function). Only thing is, when I click on the top ...

Time to start a counter on client-side.

Hi everybody, I'm developing an web application using asp.net mvc, and i need to do a stopwatch (chronometer) (with 30 seconds preprogrammed to start in a certain moment) on client-side using the time of the server, by the way, the client's clock can't be as the server's clock. So, i'm using Jquery to call the server by JSon and get the ...

javascript [jQuery and GooG viz] with a datasource

Hi, My first attempts at JS / Jquery - I'm trying to setup a page where i can populate a table from data that is stored in a database. I now have a Python datasource up and running which seems to works fine - i've also managed to hack up something that is able to display that on a page (code below). I found a datepicker on the jQuery ...

jQuery Selectable only select 1 and get a value?

This might seem like an odd request but I'd like to use jQuery's Selectable tool to only select one item at a time and I'd like it to show me a value I'll have within each tag. At the very least I want the contents of that selection. Has anyone tried to do this? For some reason these little things seem to not be all that easily findable ...

How to create a menu tree using HTML

Hello,I need to create a menu tree using HTML. I had a search on Google, but they are providing some software to download in order to create this. But I need some script and HTML tags to do this. Can anyone help me solve this problem. Thanks in advance. ...

How to avoid strange characters before the request in firefox?

Hi, on a website i'm currently developing I'm using jquery to do all sort of magic things :-) In firefox however, when I load jquery 1.4.2 there are sometimes funny characters in front of the request. You can see the strangers characters in this screenshot (thank you firebug). In safari, Chrome and IE these funny characters don't app...

Help submitting an asp.net form with jquery

I'm trying to post the entire asp.net form to a certain url. I have tried: $.post("http://www.someaddress.com", $("form").serialize()); I have also tried: $.ajax({ type:"POST", url:"http://www.someaddress.com", data: $('form').serialize(), success: function(){ alert('yay'); } }); In both cases the submi...

How to add animation on open of a Jquery SimpleModal?

The animation-enabled example in the SimpleModal site has this animation: 1. Fade in the overlay 2. Slide down the modal div This is the code: $("#the-div").modal({ onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.data.hide(); dialog.container.show('fast', function () { di...

auto resize text (font size) when resizing window?

Hi, I have been trying(in vain) to build a page whose elements would resize as I changed the window size. I have it working in css for images no problem, but I can't seem to accomplish the same for text, and I am not sure it is even possible in CSS. And I can't seem to find a jquery script that accomplishes this. When a user resizes the...

Browser freeze while ajax call in action

I have a ASP.NET Web App. I notice that while a simple ajax call(see below) is in process, web application does not respond to any action that I try on a different browser. $.ajax({ type: "GET", async: true, url: "someurl", dataType: "text", cache: false, success: function(msg){ ...

jQuery collapsible Accordion animation behavior: content-panel is wider than accordion's container during expansion

On my page, the accordion-content expands wider than the margin-settings vis-a-vis the accordion's #container DIV and then, after it's finished expanding, the accordion-content width is adjusted to fit within those margins. This behavior doesn't look as smooth as the demos on the jQuery page and I must be doing something wrong or neglect...

radio input replacement using jquery

It may seem a bit odd to ask this since there are several solutions out there but the fact is that all of them look pretty and none of what i've seem save the input value for form submission the right way. I'm looking for something that will replace all radio inputs with divs that get special classes when they are hovered or clicked, an...

Change the Color Of Certain Words In Textarea using Jquery ?

How to Change the Color Of Certain Words In Textarea using Jquery ? For instance, i have a textarea <textarea id="txt"> </textarea> When i type into the textarea, certain words like "is, a , was ..." should be colored or highlighted. The aim is to create a ultra simple HTML syntax highlighter for my project that's all ! ...