Launching New Page With Options?
Feb 2, 2010
What I'm after or trying to do is simply create a script to launch a new page after a X amount of time, like a popup. But I need the new window to have the following options like no toolbar or scroll bars etc... This is the code I've been trying to manipulate for my purpose and just can't get it right meaning it doesn't work at all in fact I haven't even been able to get the timer part worked in since I couldn't get the launch part working..... I've made a web app using asp.net & vb.net and need a launch page so I don't have any toolbars or scrollbars etc....
<html>
<script>
var customerWindow;
[code]....
View 10 Replies
ADVERTISEMENT
Apr 7, 2004
im launching a new site that is the same topic as another site i have
i want to launch the new site as a pop up or pop under from the established site.
What code would i use to generate it so that this only happens per unique visitor and not per page impressions.
View 3 Replies
View Related
Jan 11, 2010
I don't know why this won't run. maybe i have the body that calls the function "show_prompt()" and "byebye()" wrong? [code]...
View 3 Replies
View Related
Oct 7, 2009
I am using a jQuery plugin called simpledialog. It normally launches with a button click or a link click, but I want it to launch conditionally instead. I'm doing some javascript checks and if statements and if they go thru, I want to launch the pop up, without anything being clicked or anything. Essentially as soon as the browser loads the web page. I couldn't really find any plugins that support this feature, so it there maybe a workaround?
View 1 Replies
View Related
Apr 18, 2011
I try to open a file chooser dialog when pressing a button.
Here is what i have up to now.
I took that example here [url]
View 3 Replies
View Related
Jun 17, 2011
One of the features of a site I'm working on is a button similar to the Facebook "LIKE" or Twitter "Tweet" [really exciting stuff to help with, right? ]
As such I need to be able to open an iframe as a layer on the page but can't load up a framework given the weight and potential for conflicts. The goal here is to be as light as possible while also avoiding conflicts. The page is multi-part so a simple layer won't do, it has to be a full fledged iFrame with the ability to fade the underlying window and close it down while also floating over page elements, drop downs, even flash.
Colorbox-min would be an ideal solution but the dependancy kills it. I do pretty well with frameworks but on my own am a JS novice. In a world full of ready made scripts,
View 5 Replies
View Related
Feb 12, 2010
I am trying to launching a centered browser window via a form-button using the following code...
<button type='button'
onClick="window.open('myURL','testwin','width=400, height=400, left=(screen.availWidth-400)/2, top=(screen.availHeight-400)/2'); return false">
Test button</button>
The new browser appears the correct height and width, but the left and top clauses are ignored.Am I being too ambitious trying to make this code in-line? Is there any other syntax I should use or should I give-up and call a function instead (I would rather not if I can avoid it)?I am using Firefox 3.0.17 (latest), but the same effect happens in IE7.
View 1 Replies
View Related
Feb 12, 2010
I am trying to launching a centered browser window via a form-button using the following code...
<button type='button'
onClick="window.open('[URL]','testwin','width=400, height=400,
left=(screen.availWidth-400)/2, top=(screen.availHeight-400)/2'); return false">
Test button</button>
The new browser appears the correct height and width, but the left and top clauses are ignored. Am I being too ambitious trying to make this code in-line? Is there any other syntax I should use or should I give-up and call a function instead (I would rather not if I can avoid it)? I am using Firefox 3.0.17 (latest), but the same effect happens in IE7.
View 2 Replies
View Related
Jan 30, 2010
I want to add more dropdown options which are dependent on previous options. Now I have "hand" and "loft". I want to add next option "model" How to add third dropdown option box?
Here is the code:
View 3 Replies
View Related
Jan 5, 2012
I am having 2 datepickers on the same page. One is name datePicker1 and the other datePicker2. I am actually having the code
$
(
".ui-state-active"
).
[Code].....
I want to have the above code to work only for datePicker1 and not datePicker2. Actually, the problem is that the code is working on both datepickers. How can I make it work for only datePicker1?
View 1 Replies
View Related
Jan 27, 2004
<script language="JavaScript" type="text/javascript">
if (confirm("Are you sure to delete?"))
{
self.location = 'delete.php'
} else {
history.go(-1);
}
</script>
The above code give an alert with two choices(confirm or cancel).
If the user clicks the cancel button, it will go to previous page.
If the user clicks the confirm button, it will go to delete.php.
I like to make it like the following.
If the user clicks the cancel button, it will go to previous page.
If the user clicks the confirm button, It will proceed reading the next code.(the next code contains the code for deleting.)
I tried to remove "the self.location = 'delete.php'" as a test.
Code:
<script language="JavaScript" type="text/javascript">
if (confirm("Are you sure to delete?"))
{
} else {
history.go(-1);
}
</script>
The above code do;
If the user clicks the cancel button, it will go to previous page.
If the user clicks the confirm button, it will proceed reading the next code. So the deleting will be done.
It seems work fine.
But if the user clicks the cancel button, It will go to prevous page and the deleting will be done.(it might proceed reading the next code)
View 9 Replies
View Related
Sep 29, 2010
I'm using simpleModal.js on a page and it works great however, once I try to add options to the modal it no longer works.
Here's what I'm using now and it works successfully:
If I try adding a width option it breaks...absolutely nothing happens:
View 1 Replies
View Related
Sep 4, 2009
Okay, I'm having some trouble getting my head around how to do this..
<select>
<option value="A">A</option>
<option value="B">B</option>
[code]....
View 1 Replies
View Related
Nov 17, 2007
i currently have a few problems with my code, but currently i want to get my options into my function
<select id="menu">
<option value="first">First Time User</option>
<option value="Frequent">Frequent Flier</option>
<option value="Buying">Buying a Degree</option>
</select>
How do I use this info to make it part of my function, for example when First Time user is selected and the function is executed it i want a windows.alert to come up but i don't know how to code that.
View 2 Replies
View Related
May 7, 2001
I have a bit of a question about CGI...I'm not very knowledgeable about it, so I have a specific question. Can you set up a site in which sites can be rated using CGI?
View 2 Replies
View Related
Feb 3, 2006
I would like to allow users to print a page, but I want to suppress the
header and footer the appear by default. Are there options to permit this?
View 2 Replies
View Related
Jan 11, 2007
I've tried to access the value of a selected option through the
following getSelectValue function, passing the name of the select
function getSelectValue (name) {
var sel = document.getElementsByName(name)[0];
var i = sel.options.selectedIndex;
return i == -1? "": sel.options[i].value;
}
getSelectValue ('belongsto')
...
<select name="belongsto" ...
yet I always get the error "sel has no properties". Any idea what's
wrong? Is there a simpler way?
View 4 Replies
View Related
Apr 21, 2006
I have an some options like this:
<option value="12345" title="Frank">Frank - 12345</option>
What I want to do, is get the title. I've tried this:
document.MyForm.MySelect.options[document.MyForm.MySelect.selectedIndex].title
That dosn't work. I'm just using the title attribute as a place to hold the information I need. Maybe there is another attribute that would work better for this? How can I get the contents of the attribute?
View 7 Replies
View Related
Jan 26, 2004
Code:
<script>
alert("You are not allowed to see this page");
self.location="javascript:history.go(-1)";
</script>
The above script has one option.
I like to make two options(yes or no) like the following.
Code:
<script>
alert("Are you sure to delete?");
Yes(self.location="delete.php");
No(self.location="javascript:history.go(-1))";
</script>
Is it possible? How?
View 2 Replies
View Related
Jun 3, 2005
I have one select, I can say wich element is selected:
<select name="myselect">
<option value="100">A</option>
<option value="101">B</option>
<option value="102">C</option>
</select>
this line will select the option B
myselect.options.selectedIndex = 1;
but, how can I do if I want to select the option B without knowing it´s position?
I mean, I want to select the option B and the value 101, but I don´t know it´s position
any idea?
View 3 Replies
View Related
Feb 21, 2007
Does anyone know how to get the value from a form option (dropdown list) and have it post the value without having a submit button?
So that when I choose a value in the option list the page is automatically reloaded with that value?
View 6 Replies
View Related
Jul 23, 2005
Using IE5.5+, is it possible to hide options in a select?
The following doesn't work:
<HTML>
<HEAD>
<STYLE>
SELECT OPTION.orgA{ display:none }
.orgB{ display:inline }
.orgC{ display:none }
</STYLE>
</HEAD>
<BODY>
<SELECT id=cbo size=3>
<OPTION class="orgA">RTI</OPTION>
<OPTION class="orgB">LAB</OPTION>
<OPTION class="orgC">TCI</OPTION>
</SELECT>
</BODY>
</HTML>
View 1 Replies
View Related
Jul 23, 2005
I have a drop down with alot of options say about 6000 cities and
districts. I need to select all options if user selects "All checkbox".
I use "on change" and a for loop to do this, but it takes a lot of time
to select all these options. Is there any faster way to select all
these options?
function selectAll()
{
var element = document.getElementById("location");
var length = document.getElementById("location").length;
for(var i=0; i<length; i++)
{
element.options[i].selected=true;
}
}
View 3 Replies
View Related
Jul 23, 2005
I have two drop down box's in a form, how would I go about changing the
options of the seccond one depending on what option is selected in the
first one?
For example, if there's a drop down box with "a", "b" and "c" as the
options, and another drop down box with "1", "2" and "3" as the
options; then when you select "a" on the first drop down box the values
of the seccond one changes to "a1", "a2" and "a3". This should work for
all the options of the first drop down box.
View 3 Replies
View Related
Jun 1, 2006
In JS, how can I change the selected value of a dropdownlist(select options)
I know the value of indexed value of the selected value before it is changed.
View 4 Replies
View Related
Aug 3, 2006
I got this simmple function, It stays on onChange on select and on
change it hides all objects with ID equal to select name plus the
optionvalue. It works perfectly in Opera and FF, but IE crashes because
says that options object is null
the problem is in for (optionId in what.options)
It seems that IE does NOT return the list of options, but only some
other objects: language scrollheight, istextedit, currentstyle,
document, and onmouseup
Please can you help me how can I go throuth that cycle? I need to get
the values of all options in select. Thank you
function showHide (what) {
selectedId=what.options.selectedIndex;
selectedValue=what.options[selectedId].value;
selectedObject = document.getElementById(what.name+selectedValue);
selectedObject.className="";
for (optionId in what.options)
{
optionValue=what.options[optionId].value;
if (optionValue) {
optionObject = document.getElementById(what.name+optionValue);
if (optionId!=selectedId) {
optionObject.className="hidden";
}
}
}
}
View 3 Replies
View Related