javascript

How to Reload the Lowest Iframe's Parent Only

Hi, I have a page that is already in an iframe that has another page with an iframe within it called "framedets", which allows the user to perform some processing within this iframe. Within this lowest iframe though, when the user presses a "process" button, I want to reload the lowest iframe's parent only and not the top most iframe....

How dynamic funnel?

The kind of language, in both IE and firebox compatible. ...

how to check what is inside javascript object

Is there any method or way to check what is inside a JavaScript object. something like print_r in PHP? Cheers ...

What version of JavaScript does Titanium use?

I'm trying to find out what features of JavaScript I can use in Titanium Appcelerator. I've noticed that it has both forEach and map on Arrays, so I guess it's JavaScript language version is least 1.6 (in MDCs's terms). But does it reach further? ...

Conditional adding HTML column based on another column's attribute

Is there any way I can add a column based on another column's attribute? Something like this: If a td has attribute colspan="2", then add one new  before it. Thank you. <table> <tr> <td>aaa</td> <td colspan="2">bbb</td> <td>ccc</td> <td>ddd</td> <td colspan="2">eee</td> </tr> </table> The result table should ...

How can I loop this (JSON)

{ "fulltime": [ {"name": "oscar godson", "age": "20", "email": "[email protected]"}, {"name": "daniel erickson", "age": "25", "email": "[email protected]"}, {"name": "john doe", "age": "18", "email": "[email protected]"} ], "parttime":[ {"name": "bill johnson", "age": "35"...

Create array based on variable value with javascript

Hi, I have a variable with a dynamic value (from 1 to 15). Depending on the value of the variable, I want to create an array with the same length. And, if for example the variable value is 1, I want to store A in the array, if the value is 6 I want to store A,B,C,D,E,F in the array and so on. How do I achieve this? Thanks in advance...

How to detect escape key press with javascript

Possible Duplicate: Which keycode for escape key with jQuery How to detect escape key press in IE, Firefox and Chrome? Below code works in IE and alerts 27, but in firefox it alerts 0 $('body').keypress(function(e){ alert(e.which); if(e.which == 27){ // Close my modal window ...

jcarousel is not firing event on images

jcarousel is not firing event on images after clicking on next button. Event is binded for initial load of images. i have added the code which i'm using to show preview of the image in carousel. can any one please help on this, Thanks function imagePreview() { xOffset = 50; yOffset = 60; $("img.preview"...

onclick pass class of element to javascript

i wrote a code like this <?php $extCount = 0; foreach($this->externalReferal as $externalReferal) { $extCount++; ?> <div class='fieldtestPct' > <div class='fieldItemLabel'> <label for=''><?php echo $externalReferal->getConsultantname(); ?> ( <?php echo $externalReferal->getSpeciality(); ?> )</label> </di...

Infowindow in Googlemaps wont fill

Hi all, I've got the following problem with Googlemaps. I've created a createMarker function which returns a marker which i publish with addOverlay(). This works perfect, the marker get shown but the only problem is the click event voor the marker, i want a infowindow which is populated with the 'i want this text to be published' text,...

Dynamic height and webkit-transition

Hi, I use CSS3 to animate my page, but I have a problem with a composant : the height of this one is calculated in Javascript (Dojo), and is applied with the function dojo.style(mycomposant,calculatedHeight). I've set the following css property to this composant : "-webkit-tansition: height 5s linear", but because I applied the property ...

separate integers and text in a string.

Hi, I have string like fullData1 upto fullData10 in this i need to separate out the integers and text part. how do I do it using javascript. ...

Automatic Iframe height.

Hi All, I have an asp page having an iframe. I need to set automatic height to iframe. I found an article on http://stackoverflow.com/questions/91721/iframe-sizing but it could not solve my problem. My iframe is <iframe id="content" src=http://www.bc.com.au/news_manager/templates/?a=&lt;%=request.QueryString("a")%&gt;&amp;z=&lt;%=requ...

Open new https browser window using javascript

I have situation where in c# code I am adding an onclick client event handler. It should do: Button1.Attributes.Add("onclick", "javascript:window.open('https://"+Request.ServerVariables["HTTP_POST"]+"/reports/?type=1&amp;id=2"); in the end the URL looks like: https://servername/reports/?type=1&amp;id=2 in the reports folder of my...

Rendering Issues in IE7

Hello All, I have been designing a website and some of my pages are rendering differently in my browser (IE8) to that of the entire school which uses IE7. For example I have a news page where the text is indented correctly alongside the image which is what I want to happen. However in IE7 all the text is knocked down below the image and ...

how to manage filenames for gallery?

Hey all together, the procedure: i have a script which uploads images (via hmtl-form and php) for a gallery for something you can sell on the internet. the uploaded files are stored to some temp folder. if the customer pays for posting the object online, a daemon, who crawls the directories, will then get the pictures and scale them t...

Form not submitted after a second call

I try to submit a form if a condition is not validated. $("#support_form").submit(function() { if($("#id_reward").attr('value')=="" && $('.reward_item.none.selected').length==0) { alert('problem'); return false; } else { alert('valid'); return true; } }); If my form is valid on the first call, my form is well sub...

How to set cookie under my firefox addon?

How to set cookie under my firefox addon? function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "")...

escaping a variable in jquery

I have a function like this... I am trying to insert a class name using a variable gotValue. How do I pass it in jQuery? I have tried that in if clause, but it did not work. function fullData(gotValue) { alert(gotValue); var count = gotvalue.substring(9); if($('.'+gotValue+'').is(':checked')) { alert('working'...