Build A Function Inside The Html_text That Can Be Called Within The Popup Window?
Feb 16, 2009
i am using popupwindow.document.write(html_text); all the html of the pop-up goes into html_text.how can i build a function inside the html_text that can be called within the popup window?
View 6 Replies
ADVERTISEMENT
Aug 25, 2009
I am very new to javascript and jquery. on my site i have a list of short quotes. right after each quote there is a hidden div which contains the complete text; by clicking a quote, i would like to open a popup-window which displays the complete text.
View 1 Replies
View Related
Nov 3, 2010
I'm using the uploadify jQuery plugin from here: [url] & am having some problems.
Everything is working correctly but the uploadifyUpload() function doesn't appear to be triggering. It is not accessing the add_list.php script whatsoever.
Here is my code from my header..
Code:
It correctly shows an alert box with "Correct" so I know it's getting in there to run it, but it just isn't running.
Shouldn't need to see this, but here is the errorCheck() function if interested..
Code:
Lastly this is the HTML code that calls it.. stripped out a lot of uneeded code for clarity.
Code:
View 11 Replies
View Related
Jan 29, 2010
Is there any way to re-establish a vertical scrollbar inside a popup window if the parent window opened the popup without scrolling? For some reason, the asinine people at the local mls decided that their virtual tour links only need to be 800x600 with no scrolling. Here is what I am using to resize the window onload - but I still cannot scroll the page down to see the rest of the page, if this page is not loaded full size:
Code:
var originalWidth = window.innerWidth
var originalHeight = window.innerHeight
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
} func();
}}}
if(originalWidth < 1000){
addLoadEvent(function() {
window.innerWidth = 1000
})}
if(originalHeight < 500){
addLoadEvent(function() {
window.innerHeight = 500
})}
Is there something I can add to this to re-establish the scrollbar?
View 3 Replies
View Related
Sep 15, 2010
I am using JavaScript for popups in my OpenLayers map. All the html tags like <br> work in the popup window except for the link href tag. Everytime I put in a link in my popup window it doesnt work:
var mystring = "here is link:<br> <a href="www.sun.com">link</a>";
popup = New OpenLayers.Popup.FramedCloud("chck", feature.coord, null, mystring, null, true, onPopupClose);
Also tried link without quotes and with ticks and nothing seems to work with the link not taking me anywhere.
View 1 Replies
View Related
Jul 20, 2005
how to stop the document.write opening a new window when called in a function, what I want to do is really simple but is defeating at every turn.I have a line of text that is a link on an html page,when clicked i want the the function called to print a name, imediatly after the
calling link (on the same page).
View 12 Replies
View Related
Apr 23, 2011
I want to preserve a 16/9 aspect ratio to the window after any resize, making the width a function of the height.
As I have a window.resizeTo() inside the window.onresize event function, the infinite loop is served. How may I quit it?
<html><head><title>Title</title><script languaje="javascript">
const c_ra=16/9;
window.onresize = function WindowReSize() {
var myWidth = 0, myHeight = 0;
[Code].....
View 2 Replies
View Related
Dec 4, 2007
function test1(){
window.open('about:blank','TEST','width=300,height=300,resizable=1');
}
function test2(){
window.open('about:blank','TEST','width=300,height=400,resizable=1');
}
I create 2 buttons and set onclick to test1() , test2() respectively but I tried to click on button1 (call test1()) and click on button2 (call test2()) the windows popup which call from test2() has height=300. I want to popup with height =400 and I don't want to close window popup which call from test1().
1. Call test1 function (the windows's popup width = 300 ,height=300)
2. Call test2 function (the windows's popup width = 300 , height =300 <= I want height =400)
View 4 Replies
View Related
Apr 17, 2010
I'm recieving an HTML piece from wich I should get all the TD tags, for example, I recieve the following:
<tr>
<td>name</td> <td>surname</td>
</tr>
Then I must look for "<td>[anything]</td>" with a regex and and I build an array containing the text inside the tags, like
tags[0] = "name";
tags[1] = "surname";
So... I did this:
Code:
html = "<tr><td>name</td> <td>surname</td></tr>";
var reg = new RegExp('<td[^>]*>(.*)</td>', 'gim');
var matches = html.match(reg);
The problem is that I'm getting just ONE array element with the value:
"<td>name</td> <td>surname</td>"
instead of two values (on for name and another for surname).I testes a lot of different regex and also some string methods but I cannot make it work
View 3 Replies
View Related
Sep 6, 2009
I have something that's called with AJAX when the user enters some text [url]. What I want is to execute some javascript within this "frame". If the frame calls something, with say <script type="text/javascript"> document.write('h'); </script> in it, then "h" doesn't appear, and neither does anything besides what would normally be shown if I didn't add that.
View 6 Replies
View Related
Feb 5, 2007
We want to load the popup window when the page is loaded but this popup window must not be visible to the end user. We need this to do some processing in the popup window which is hidden.
Is this possible? Is this correct/valid?
View 1 Replies
View Related
Jul 20, 2005
I'm trying to use window.open from inside a user defined function, and
it's not working.
Mountain Man
============
<script>
function openFootnote(contentURL) {
window.open('contentURL','footnotes','height=180,w idth=160');
}
</script>
I've tried calling on the function 2 different ways, as shown below.
Nothing happens either way.
<a href="javascript:(void)" onClick="openFootnote(fn1.html);">...</a>
<a href="javascript:(void)" onClick="return
openFootnote(fn1.html);">...</a>
View 2 Replies
View Related
Jun 4, 2009
1. VBScript opens a dropmenu: oPopUp = window.createPopup
2. Then Javascript code in the popup body should hide the popup when certain item has mouseover.
Can javascript hide vbscript popup (within the popup)?
View 3 Replies
View Related
Apr 2, 2009
I am using objects in JS and I am trying to add draggable() into a DIV that works when I move the function out of the object context.
Example:
Code:
That does not work. However, if I do this:
Code:
Then it will work... because the draggable() function is not within the object.
I need this to work within the object, because I will have several DIVs associated with objects and I need them to have draggable() in specific cases.
View 2 Replies
View Related
Jun 21, 2011
I am using a form validation class I got from the internet. Now I have a main page wherein I have a <div id="form"></div> that, using AJAX, displays other pages with forms like textboxes, etc. for a user to input. Here is the code for my main page:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]...
View 2 Replies
View Related
Jul 7, 2011
I am trying to open a new window with the code being built in html in the following:
Code:
var html="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head>";
html+= "<title>Trackpoints near " + usrLat + "� lat & " + usrLon + "� lon</title>"
html+= "<script type="text/javascript">
[Code]....
View 1 Replies
View Related
Jul 1, 2010
I'm using the Google AJAX APIs, but some reason google.load works when run through normal javascript, but if I call the method from my jquery ready function it doesn't work. Code and output is below
page.html
<script type="text/javascript">
loadGoogleStuff();
function loaded() {
console.debug("in loaded function");
}
[Code]...
window.loadFirebugConsole is not a function If I comment out line 3 in code.js, the console debug runs okay, so the ready function is running okay. Even though there's a reference to Firebug, the same error occurs in Safari too. Nothing on the page loads.
View 1 Replies
View Related
Jan 28, 2011
I'm trying to make a time script for an app I'm making (this is not an HTML document; it's a .js file to be used with Titanium) however I'm having trouble getting the function to display and update.
function updateClock()
{
setInterval ( 'kiTime()', 1000 );
}
function kiTime ()
{
//Get current date and time
[Code]...
If I use kiTime() under the text field I will get the current time (or at least the time the app was opened), however if I call updateClock() it's blank.
View 4 Replies
View Related
Jul 23, 2005
I'm trying to submit a form from a window.onload event as follows:
<body>
<form method="POST" action="http://www.website.co.uk" name=login>
<INPUT TYPE=hidden NAME="Username" value=username04761316 >
<INPUT TYPE=hidden NAME="Password" value=password05497967 >
<INPUT TYPE=hidden value="Sign in">
</FORM>
</body>
<script>
window.onload = document.forms[0].submit;
</script>
This page looks up a username and password and submits a form to log
on to another application on a different server. This works on my PC
and on most other PCs I've used to test this on, but it's not working
on one of our user's PCs. It remains on this page, and it appears as
if no attempt is made to execute the script.
We're both using Internet Explorer 6. Are there any browser settings
(or anything else she might have installed, such as popup blockers)
that might stop this code being run? I've checked the proxy server
isn't stripping out the JavaScript.
View 2 Replies
View Related
Jan 22, 2010
I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.
now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work
View 3 Replies
View Related
Sep 22, 2010
In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?
View 1 Replies
View Related
Jan 12, 2010
I have a toggle function that works brilliantly
Code:
// Toggle
function toggleDiv(elementshow, element, elementhide, elementhide2, elementhide3){
[code]....
View 4 Replies
View Related
Aug 26, 2010
'm trying to make some code so that when a user clicks on a picture, a image will be displayed where it was clicked (i.e the x and y co ordinates). Anyway, so I started writing it but my code doesn't seem to work, so I'd like to see what I've done wrong.[code]And the image which I want clicked has an id of "world".
View 1 Replies
View Related
Dec 29, 2009
Can I get Images to resize to window height when called from an 'a' link created in a cell of 'insertRow'.
Something like this
Code:
var additemlink=top.frames['register'].document.createElement('a');
additemlink.setAttribute('id','itemlink'+count);
additemlink.setAttribute('href','zanfeld/p'+code+'.jpg');
additemlink.setAttribute('target','display');
additemlink.setAttribute('title','Review this item then click your back button to return');
additemlink.className='itemlink';
additemlink.appendChild(document.createTextNode(item));
additemlink.onclick=function(){resize(this, 100, 100);};
additem.appendChild(additemlink);
I've seen a lot of inline scripting for this but no dynamic unobtrusive 'resize' image examples are to be found.
View 6 Replies
View Related
Oct 28, 2011
calling a php page through AJAX. and it works Aok. I wanted the ajax backend php file to call a function in the front end page. even a simple alert from the backend php file wont work.
My code to call the alert and parent's javascript functions are below.
Simple alert
echo "<script language='javascript'>alert('Please Help Me');</script>";
Calling Front End Page Function
echo "<script language='javascript'>frontend_function();</script>";
View 5 Replies
View Related
Sep 20, 2010
I have a function that sends some data to a PHP file for processing, and call a page refresh after that, but it's not working. This is what I have so far:
function Reload() {location.reload() ;}
function del(v,m,f){
$.post("system/reject.php", {id: v}) ;
javascript:parent.mainFrame.document.location.reload();
}
The function Reload is something else I tried while trying to get it to work but everything I have done so far doesn't work. :(
View 2 Replies
View Related