javascript

jquery: how to find an element which is comming 2 elements before current element

Hi guys... i have a markup which look like this: <h3>Paragraf3-dummytext</h3> <p> <a name="paragraf3"> Quisque id odio. Praesent venenatis metus at tortor pulvinar varius. Lorem ipsum dolor sit </a> </p> what i want to do is to find all 'a' tags with 'name' attribute and find the 'h3' tag for that anchor; im trying to do it like this...

Java to JavaScript (Encryption related)

Hi guys, I'm having difficulties to get the same string in Javascript and I'm thinking that I'm doing something wrong... Java code: import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Date; import java.util.GregorianCalendar; import sun.misc....

Javascript DOM howto?

Hi, I am a javascript noob. I would like to select the second 'p' element of the div.box. How do I do this? Thanks a lot! Tom ...

Page Loading Screen in PHP

Hi all, I am working on a Php page which loads more images,so I want to show the User as the Page is currently Loading. I have tried but it does not working correctly. The loading image should be run until all image gets load.How to implement for this? ...

To divide the big text into columns.

Problem: There is a big piece of the text: <div class="cont"> <p> Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam volupt...

FireFox extension. How i can add overlay into content area of window.

My Problem in a subject. For Example: how can i dev my own Alert Pop-ups I think, its possible with overlays, but i dont know how. ...

jQuery selector - style values

I got a series of divs like this: <div class="message" style="padding-left: 0px;">...</div> <div class="message" style="padding-left: 20px;">...</div> <div class="message" style="padding-left: 20px;">...</div> <div class="message" style="padding-left: 40px;">...</div> <div class="message" style="padding-left: 20px;">...</div> And I wo...

Some jQuery-powered features not working in Chrome

I'm using a jCarouselLite plugin for creating two image galleries on the main page of my Django-powered site. The code of elements with navigation arrows is generating dynamically like this: $(document).ready(function () { $('[jq\\:corner]').each(function(index, item) { item = $(item); item.corner(item.attr('jq:corner'))...

Django templates onchange data

In the following code, i have a drop down box and a multi select box. My question is that using javascript and django .how will i changes the designation with changes in names from drop down box. <tr><td> name:</td><td><select id="name" name="name">{% for name in names %} <option value="{{name.id}}" {% for selec...

Get the JavaScript variable in formsubmit

I have an issue with screen scraping. In the page the links are available as follows, <a id="linkbuttonAlphaA" href="javascript:__doPostBack('linkbuttonAlphaA','')">A</a> <a id="linkbuttonAlphaB" href="javascript:__doPostBack('linkbuttonAlphaB','')">B</a> <a id ="linkbuttonAlphaC"ref="javascript:__doPostBack('linkbuttonAlphaC','')">C</...

how to set cache for css/js file.

Hi all, I have to use the cache for the css files and js file which i used in the site. my site running in a shared hosting server. nothing can be done with server. so what could be the solution for use cache and compression for js and css files. ...

generate/get the Xpath for a selected textnode.

Is it possible to get/generate the XPath, for a text selected in the HTML page. Say,I have opened an html file using a browser,say safari/firefox, now i select some text (using mouse), i want to generate/get the xpath for that. is it possible to get it programatically? how? ...

Modifying HTTP response headers in Firefox

Hi, Does anyone know if Firefox extensions are allowed to modify HTTP response headers? For example, can an extension remove the x-frame-options header to let the page load in an iframe? Thanks ...

Javascript function push problem

Hello i've following JS function. responseData:function(resp){ this.jsondata = eval('(' + resp + ')'); this.propList = []; for (var i = 0;i<this.jsondata.length;i++) { for (obj in this.jsondata[i]) { alert(obj); //shows the property name of obj this.propList.push({ obj : this....

How can I get an array of all elements within a specific class using javascript and/or jQuery?

Hi, I'm trying to get an array of all elements with the class "sampleclass". For example, withing my document I have three divs: <div class="aclass"></div> <div class="sampleclass"></div> <div class="anotheraclass"></div> <div class="sampleclass"></div> I want to get an array with all elements that are within the "sampleclass" using ...

To see javascript function names in event list on VS.NET 2008 IDE

I wonder that is there any way to see all function names in Event combo-box on Visual Studio 2008 IDE? ...

Dojo: dijit.form.DropDownButton content not positioned correctly

I have the following setup: <div dojoType="dijit.form.DropDownButton"> <span>Modify</span> <div dojoType="dijit.Menu"> <div dojoType="dijit.MenuItem">...</div> </div> </div> There is of course more to the final setup. The problem I Have is that if I scroll in the page, the popup menu under the DropDownButton comes much highe...

JQuery tablesorter - Keeping grouped subheaders together, but still sorted

Hiya, I'm not really a Javascript programmer, so I'm struggling with this! I'm using the tablesorter plugin along with the Tablegroup plugin, which work very nicely to group the table rows by a parent, and then sort the parents. My problem is though, that I'd also like the child rows to be sorted whilst within the parent group I've d...

Can anyone tell me about a jQuery modal dialog box library that doesn't suck

jQuery based modal dialog boxes are great as long as you do as much as the example tells you to. I need a jQuery based modal dialog box library that has to have the following characteristics: Ideal implementation: function showDialog(values) { processToChangeDom(values); changeDivTobeDisplayed(); modalDialog.sh...

Uploading multiple files with size restriction in Javascript

Can anybody tell me how i can upload multiple files with size restriction in javascript. ...