javascript

UIWebView - get total height of contents using Javascript

Hey. Oh, and I should probably mention that I am not loading the UIWebView with a website, but with an HTML string. I'm trying to use a UIWebView for displaying content higher than the screen of the iPhone, without needing to scroll in the webView itself. For that, I need a way to get the total document size, including the scrollable ...

is there any javascript library to resize images according to browser window size ?

hi, is there any javascript library for resizing the images according to browser window sizes ? I need to consider all cases (vertical / horizonal image, vertical / horizonal browser window) N.B. The image scale has to be the same! (no distorsions) thanks ...

Multiselect combobox with ExtJs

How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs? I've been looking, but can't seem to find a solution that is compatible with the latest version of ExtJs (this question is similar, but doesn't have a working/current solution). This is what I have so far, but it's a single select: new Ext.FormPanel({ ...

Change some data in input field with jQuery

Hi i need with jQuery to change data in input field when user click on some link <input value="height-size-width"> so when user click on some <a href = "#" id="width"> link need to change only widht in input field.... if user click <a href = "#" id="height"> link script need to change only height in input field... Like youtu...

I want to store Javascript array as a Cookie

Is it possible , I have a some sort of list and I want to store it on browser , If it is not possible , what is the efficient way of doing this ? ...

find image height when before loaded image

Hi friends, i have one problem. now i dynamically create a div for displaying images based on image width and height. so how can i find image's width and height before loading images or using image src? help plz ...

jquery dialog opening and closing don't work

hi, i want to show dialog after n seconds and hide it after m seconds but it don't work for me! $(document).ready(function () { var advanced = $("div#advanced"); $(advanced).dialog({ autoOpen: false, modal: true, buttons: { "Try it now": function () { window.location = 'myURL'; }, "No thank's": funct...

js objects and properties

How Could I list/loop all properties of an object? Knowing only the object name. eg for(var prop in myobject){ alert(prop.name); alert(prop.value); } ...

hide javascript in php

hi all i am working on a project, it need email validation when user enter his email address check for availiblity. i wrote the php code in javascript it works fine but my problem is when some one see my page source it is displaying all user email address in javascript code. i want hide this one. i wrote javascript code in seperate f...

Substitution for display='table-cell' in IE 7

Hi friends, document.getElementById(id).style.display ='table-cell'. This gives error message in IE, this is IE bug or any other solutions please give any other solutions. IE7 doesn't support this property. this is my coding. Even Firefox and Chrome are accepted. My problem is IE. Please friends give solution... var cont2 = document.c...

jQuery: Writing jquery in an object oriented way

Hi all, I am trying to write all my query code in an object oriented way. But I don't know how to implement this for each click function and hover function etc. I also wanted to know: What are the advantages of writing query in object oriented way? For query what is better the object oriented way or in the ordinary way? ...

Get link position on screen from google search results

I want to make an app in .net to search on google for a keyword and click on a specific link from the results. Like a bot. How can I get the coordinates of screen where the specific link appears in search results so I can do a click on it. The component where the page loads will have javascript enabled so just parsing the html is not e...

Converting Existing site into Mobile Version

The existing site in cakephp with flash. We need to convert it into mobile version. Please suggest me is there any possibilities for making mobile version. ...

jQuery .trigger() or $(window) not working in Google Chrome

I have this jQuery ajax navigation tabs plugin that I created using some help from CSS-Tricks.com and the jQuery hashchange event plugin (detects hash changes in browsers that don't support it). The code is little long to post it here but it goes something like this: Part 1) When a tab is clicked, it gets the href attribute of that tab...

Sending variable data from one of two text boxes to javascript

Greetings, all! I am fairly new to JS (my background is in C++, enterprise languages like assembly and COBOL, and some light .NET), so I was wondering if I could get some advice regarding how to send variable information from one of two text boxes to some javascript and then have the JS do some basic checks and such. Here's the pseudoc...

location.href in javascript ?

javascript: location.href("somefile.php"); // successfully working with IE location.href = "somefile.php"; Ques 1. first code is not work with Safari. Why? Ques 2. What is the difference b/w these codes. Thanks, ...

Event triggering inside prototype

When I try to call "Test" function I get an error. How to fix that? (no jquery!) Browser:firefox error: TypeError: this.Test is not a function <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script type="text/javascript"> ...

Open a save file dialog for a js variable

In my web app I need to give the user the option to save a js variable as a file (when the user clicks download, the app offers him to save a file, preffereably as .js file). Similarly as google docs offers you to save a file. Is it possible for javascript to pass it's variable this way? ...

Google Maps Api v2 error

  var mymarkers= []; //array function createMarker(point,html,ref){ var marker = new GMarker(point); mymarkers[ref] = marker; GEvent.addListener(newmarker,'click',function(){newmarker.openInfoWindowHtml(html);}); map.addOverlay(newmarker); } This function works well, it adds a marker to the map no problem, but w...

How to send Facebook message from Flash?

So I can get online friends without problems into my Flash, but how can I send them a message to Facebook chat? Is there any API for that? I found some applications that are doing this. Can anybody point me somwehere? ...