I want to access the iframe my page is in and resize it. By the way I'm doing it in javascript.
It's something like parent and height
or offsetHeight.
<iframe src="mypage.asp" height="400" width="400" ></iframe>
And in mypage.asp I do sth similar like this:
var h = // new height;
parent.height = h;
But it ain't all right...
hi
I have a joomla project. In this the text editor is tiny mace. But there is no option to upload a pdf file. So I want to implement Ck editor or fck editor instead of tiny mce. I have downloaded ck editor and install as usual way (admin side ->extension->install- uninstall section) and disabled the tiny mce in Plugin Manager. But I ca...
I am building a framework that will validate forms both client-side (javascript) and server-side based on a form requirements specification written in json.
The purpose is to get rid of logically equivalent code on the server and client to make the code more maintainable, faster to write, and less buggy.
The specification format may ...
I'd like to know the x/y offset of the how far the user has "scrolled" within the viewport in mobile safari on the iphone.
Put another way, if I (through javascript) reloaded the current page, I'd like to find the values I'd need to pass into window.scrollTo(...) in order to reposition the document/viewport as it is currently.
window.p...
Hi all, trying to make a page which will recursively call a function until a limit has been reached and then to stop. It uses an ajax query to call an external script (which just echo's "done" for now) howver with neither onSuccess or onFailure triggering i'm finding it hard to find the problem.
Here is the javascript for it. In the hea...
I have an HTML textarea:
<textarea>
Some text
Another text in another line
BOOM
Hello there.
</textarea>
I want to be able to vertically scroll to the word BOOM so that it is visible (it doesn't matter on which line it appears).
Is this possible?
...
Hi,
I have this little function that opens modal window type thing. The problem is that it doesnt work on IE. All other browser its fine, but on IE, nothing happends:
function showOverlayBox() {
if( isOpen == false ) return;
$('#full').css({
display:'block',
left: ( $(window).width() - $('#full').width() )/2,
top: ( $(...
I'm trying to learn some Ajax and MySQL...
Basically, the code that I have right now is similar to: http://www.w3schools.com/PHP/php_ajax_database.asp
I was wondering how should I modify those codes (both html, javascript and php) to create two drop down lists. The first drop list would be used for choosing the Lastname (eg. Swanson) a...
I have the following code:
<select>
<option value="Type 1">Type 1</option>
<option value="Type 2">Type 2</option>
<option value="Type 3">Type 3</option>
<option value="Other">Other</option>
</select>
<input type="text" id="other" />
What I want to do is using jQuery make the textbox below hidden by default, and then show it if a user...
I am using swfupload to upload files on a website, the problem that every time the user open the page which contains the upload button, the page loads completely then the flash file start loading from scratch every time the user visit the page with no cache.
Is there a way to preload and cache .swf files in my asp.net page?
...
I am retrieving values from a database and displaying it a table using php. Each table is stored inside a div tag.
<div id="print">
table content 1
</div>
<div id="print">
table content 2
</div> ..................
Can some one please suggest a javascript where i can get a separate link/ button that will print all the tables and a lin...
I have a javascript function for checking errors which I am calling on OnClicentClick event of a button. Once it catch a error I want to stop execution of the click event. But in my case it always it always executes the onclick event.
Following is my function:
function DisplayError() {
if (document.getElementById('<%=txtPassw...
I'm seeing my Friend's code here...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Check action </TITLE>
<script>
function detectEvent(){
if(window.event.keyCode==13)
{
alert("you hit return!");
}
}
</script>
</HEAD>
<BODY>
<form name="name1" onkeyu...
Hi I have a usercontrol which includes some JavaScript, if I add the control to a standard web page I can start the JavaScript in the body tag, like this
<body onLoad="Start()">
The problem is that I need to add the control to a webpage which is inside a masterpage, how do I then start the script when a page inside a masterpage doesn'...
Hi all,
I started to use Dashcode with a Safari Custom Project, my apps work fine, but StackLayout Object does not work in Firefox.
I know Dashcode use many wekbit-specific things but is there any way I can get StackLayout object o work in Firefox? I would not mind losing some fancy stuff like transition-animations as long as my Views c...
I'm not sure how best to describe this problem... In short, I want to use object literal to allow me to pass a random amount of variables in any order to a function. Whilst this is not big deal in theory, in my code, this object literal is passed to a second function call on_change.
on_change works comparing an element inner HTML to a s...
Hello
Is possible change background-color on same td in fullcalendar?
for example: I like have blue beckground at Mo 10:00-14:00 and green beckground at Tu 9:30-11:30.
I visit: http://code.google.com/p/fullcalendar/issues/detail?id=144&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars
But it is possible now and how?
P.S:...
if a user types in an input say 3 into a text box three small text boxes should be shown below or in a popup through javascript or jquery .How can this be done...
<input type="text" name="order">3</input>
Thanks..
...
I'm trying to implement a iGoogle like dashboard interface using widgets that get their content from other sites using JSONP calls.
The problem is that if the first widget that calls the "$.ajax" takes 8 seconds to get the content back, it seems that the callbacks of the other widgets will only be called after the callback of the first ...
I need my javascript to only do the callback when I OPEN a section on the accordion, as of right now it does a callback when I open OR close a section because I'm only using a click function. Is there a way I can modify my existing click function to only run when the given section is activated?
My current click function:
$("a#mimetype...