Hi - I have this script on my html page:
<script language='javascript'>parent.resizeTo(550,510);</script>
I'd like to add to it so it positions the window in the middle of the screen. Also, I want to remove the address and tool bars (I've managed to hide the scrollbars by using body{overflow:hidden;}).
I know how to do this using JS ...
I'm trying to write a code that can run on Android 1.5 and 2.0.1, but I have issues with the javascript engine used on Android 1.5.
alert(localStorage); just hang on v1.5 while on v2.0.1 it alerts correctly.
is there an unblocking way to do it or to detect the version of Android with javascript?
...
I have a page with the following two divs:
<div id="searchResults">
</div>
<div class="postSearchOptions" style="display: none;">
</div>
Is there any way that I can make the "postSearchOptions" div appear when the "searchResults" div is updated by an AJAX call? I don't control the AJAX calls and I want to detect any change in the "se...
When I use the back button on Firefox to reach a previously visited page, scripts on that page won't run again.
Is there any fix/workaround to have the scripts execute again when viewing the page the second time?
Please note that I have tested the same pages on Google Chrome and Internet Explorer and they work as intended.
Here are ...
Hi,
Was wondering, how do I add a custom marker to google maps, JavaScript, integrated into my site.
This code adds a regular marker:
var marker = new GMarker(center);
map.addOverlay(marker);
but where do I insert an image tag (say, "marker.png" ) for it to appear instead of the regular google marker?
Thanks!
...
I wrote the following:
Object.prototype.length = function(){
var count = -1;
for(var i in this) count++;
return count;
}
It works. But when I execute my page, even without using this function, Firebug tells me that jQuery's .appendTo() is no longer a function. Why would this be?
...
The Problem
I am tring to do an ajax request to a PHP script, however I am having a problem getting the data into the format that the PHP is expecting it, the PHP is expecting the data to come in as array within an array something like,
Array
(
[cv_file] => Array
(
[849649717] => Y
[849649810] => Y
...
Hello,
I am newbie to jQuery, just trying to learn it since last couple of days. In my office, there are few experience JavaScript Developer and they work mainly with jQuery for all their needs and whenever I got and talk to them to get some better understanding of how jQuery works and first they say is that on $(document).(ready) you ...
Hi, I'm setting up a form in which multiple entries can potentially be made (via an Add more button) for one of the qestions. I'm trying to figure out the best way to make this accessible without javascript and also to allow the input fields to be shown dynamically each time the Add button is clicked. There are 3 pieces of data i need to...
Hi,
In a javascript file (e.g. script.js) I need a variable that contains the absolute path to this file.
How can I do this dynamically?
Thanks.
...
Hi, I'm attempting to build a simple plugin like this
(function($) {
$.fn.gpSlideOut = function(options, callback) {
// default options - these are used when no others are specified
$.fn.gpSlideOut.defaults = {
fadeToColour: "#ffffb3",
fadeToColourSpeed: 500,
slideUpS...
I have an Asp.net MVC project that modestly uses jQuery scripts. My views also display partial views in them, either returned using RenderPartial or RenderAction helper methods. Partial views are usually used to encapsulate some common display but they may as well have some client-side script functionality. My javascripts have the same n...
As per how StackOverflow does it when you are adding a question or replying to a question;
I'd like to prompt the user with a;
"Are you sure you want to navigate away from this page"
"Press OK to continue or Cancel to stay on this page"
I've tried a couple of js snippets i've found on ze internet, but nothing quite cuts the mustard.
...
Does anyone know of a jquery plugin that does code folding of XML structures?
...
Hi Everyone,
I've got an issue with SharePoint Server 2007 SP1 which seems to be documented in various forms, but I haven't been able to find an answer to my seemingly simpler question.
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/040533d2-c738-4ac2-b2d6-65a1602fa2d1
Essentially, we have a form with a l...
Hello SO,
I would like to have a confirmation on some point.
My goal is to always get the same string (which is the URI in my case) while reading the href property from a link. Example:
<a href="test.htm" /> with base_url = http://domain.name/
<a href="../test.htm" /> with base_url = http://domain.name/domain/
<a href="http://domain...
I have searched the site and I've found various solutions, most of them suggesting using
return false;
Problem is that I'm using this piece of code to submit the form:
$(function() {
$("#snd").click(function() {
var dendar = "http://" + $("#inpt").val() + ":" + $("#pwd").val() + "secretsite.lol/something.xml";
...
I'm the author of the multi-column articles Greasemonkey script (http://userscripts.org/scripts/show/9022), which I'm trying to port from Firefox to WebKit-based browsers like Chrome. In doing so, I ran into this WebKit issue (I'm the reporter of the bug). In essence, the offsetLeft property doesn't seem to be set correctly for paragra...
Here's my ASP.NET form. When I click one button it calls both jQuery functions. It's probably a rudimentary HTML question but I'm not sure why:
<form id="form1" runat="server">
<div id="testDialog">
</div>
<p><input type="button" id="invoke1" value="test 1" /></p>
<input type="button" id="invoke2" value="test 2" />
<...
Is there a jQuery plug-in / JavaScript control that will allow me to display array of images, but with (at least) option to delete image on certain user action.
Something like this: http://www.gmarwaha.com/jquery/jcarousellite/index.php but with dedicated delete button on every image.
First extra option that I can think of is to rearra...