I'm really confused here...i'll need some help with the following... i have a sceipt that will open a popup win which is actually a calendar and i'm trying to apply a style on the popup...
Here's the popup code: - var cal1 = new calendar1(document.forms['test'].elements['input1']);
-
cal1.year_scroll = true;
-
cal1.time_comp = false;
calendar1 is: - function calendar1(obj_target) {
-
-
// assigning methods
-
this.gen_date = cal_gen_date1;
-
this.gen_time = cal_gen_time1;
-
this.gen_tsmp = cal_gen_tsmp1;
-
this.prs_date = cal_prs_date1;
-
this.prs_time = cal_prs_time1;
-
this.prs_tsmp = cal_prs_tsmp1;
-
this.popup = cal_popup1;
-
-
// validate input parameters
-
if (!obj_target)
-
return cal_error("Error calling the calendar: no target control specified");
-
if (obj_target.value == null)
-
return cal_error("Error calling the calendar: parameter specified is not valid target control");
-
this.target = obj_target;
-
this.time_comp = BUL_TIMECOMPONENT;
-
this.year_scroll = BUL_YEARSCROLL;
-
-
// register in global collections
-
this.id = calendars.length;
-
calendars[this.id] = this;
-
}
and cal_popup1 is: - function cal_popup1 (str_datetime) {
-
if (str_datetime)
-
this.dt_current = this.prs_tsmp(str_datetime);
-
else
-
this.dt_selected = this.dt_current = this.prs_tsmp(this.target.value);
-
-
if (!this.dt_current) return;
-
-
var obj_calwindow = window.open(
-
'calendar.html?id=' + this.id + '&s=' + this.dt_selected.valueOf() + '&c=' + this.dt_current.valueOf(),
-
'Calendar', 'width=200,height=' + (this.time_comp ? 215 : 190) +
-
',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
-
);
-
obj_calwindow.opener = window;
-
obj_calwindow.focus();
-
}
What i'm trying to do is to apply the following somewhere inside one (?) of the above three functions... - var win = new Window({className: "spread", title: "Ruby on Rails",
-
top:70, left:100, width:300, height:200,
-
url: "calendar.html", showEffectOptions: {duration:1.5}})
3 1959 acoder 16,027
Recognized Expert Moderator MVP
How is Window defined and where?
you are asking for this? - <form action="" method="post" name="test">
-
<input type="Text" name="input1" value=""><a href="javascript:cal1.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>
acoder 16,027
Recognized Expert Moderator MVP
I meant the Window object which you're calling with "var win = new Window(...)".
I see that you're using window.open to open a popup. You won't be able to style that like you would a DHTML pseudo-popup. You can make a few changes, e.g. change the height, width, position, but you should do that before opening the window.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dave yan |
last post by:
hi,
i have some forms which use javascript for data validation, e.g.,
checking to make sure all required fields are completed, checking that
data falls within valid ranges for certain fields,...
|
by: Medical Watch |
last post by:
Can anyone help me on this:
I want to be able to open my paypal "view shopping cart" window with.
window.open(url, cartid,window attrb) but it gets blocked by the popup
blockers. window size is...
|
by: Chris |
last post by:
Hi,
I have a parent page that loads a popup and when the OK button is press it
pass the value back to the parent form textbox. It passes the value but it
doesn't close the popup but also open...
|
by: Chris |
last post by:
Hi,
I want to use a popup control in my asp app like the one in outlook web
access and msn. This will be used to notify users of a change in the
database. I plan on using the one on codeproject,...
|
by: Chris |
last post by:
Hi,
I am trying to create a popup calender so a user can click on a button on
the main form, a calender will then popup, the user will select a date and
then click ok on the popup. The date will...
| |
by: Chris |
last post by:
Hi,
I have been trying for days, yes days, to use the calender from the asp.net
timetracker starter kit. I am now frustrated. I finally get the popup
calender to popup but when I click ok to...
|
by: Richard Bell |
last post by:
I'm working on a VB application that must run 24x7 for a LONG time,
think 60 days of so. As part of what it does it must automate an
instance of IE and navigate to many different URLs, think many...
|
by: mailme.grover |
last post by:
Below is my code, which is kind of virtual and with its help ill use it
in my main project.
Now what i am looking for is can anybody write all the code inside a
class...so that I can reuse it. I...
|
by: rousseaud |
last post by:
I'm having some trouble getting popup forms to work properly. I have a main form that contains 4 fields that I want to fill in by using a series of 4 popup forms that I initiate by clicking a...
|
by: NewJavaBee |
last post by:
please guide me. i have the following problem:
i have a parent window that has a dropdown that is showing names and which is getting its value from a table.table conatins two columns, one is Name...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |