Sorry, more dumb newb questions.
I've got part of a page that seems to be rendering just fine. It's built by:
function writeTabPanel() {
var tpText = '';
tpText += '<div id="';
tpText += this.tab.id;
[...]
tpText += '">';
tpText += '</iframe>';
document.write( tpText);
}
and i'd like to be able to see the source so i can tell where i lost the
value of a couple variable. but all i can find is the place where this
is called:
var tabPanel2 = new tabPanel(tab2,p anel2,document. forms[0],0);
tabPanel2.write TabPanel();
//show first panel
showPanel("tab1 ","panel1",this .form); 2 1315
Matthew Crouch wrote on 07 okt 2005 in comp.lang.javas cript: I've got part of a page that seems to be rendering just fine. It's built by: function writeTabPanel() {
var tpText = ''; tpText += '<div id="'; tpText += this.tab.id; [...] tpText += '">'; tpText += '</iframe>'; document.write( tpText); }
You cannot use document.write( ) after the page displays without overwriting
the whole page, including the script.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
Matthew Crouch said the following on 10/7/2005 3:36 PM: Sorry, more dumb newb questions.
I've got part of a page that seems to be rendering just fine. It's built by: function writeTabPanel() {
var tpText = ''; tpText += '<div id="'; tpText += this.tab.id; [...] tpText += '">'; tpText += '</iframe>'; document.write( tpText); }
and i'd like to be able to see the source so i can tell where i lost the value of a couple variable. but all i can find is the place where this is called: var tabPanel2 = new tabPanel(tab2,p anel2,document. forms[0],0); tabPanel2.write TabPanel();
//show first panel showPanel("tab1 ","panel1",this .form);
Post a URL to the full code. Snippets of code, in this case, are of no use.
Try this in the URL bar of IE, it will give you the page source, all
prettied up for you:
javascript :'<co de><ol><li>'+(d ocument.documen tElement||docum ent.body).outer HTML.replace(/&/g,"&").repl ace(/</g,"<").repla ce(/%20%20/g," %20"). replace(/(\n\r?|\r)/g,"<li>")+'<\/ol><\/code>';
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bin_P19 P |
last post by:
the code i have got is as follows and now im stuck
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Shopping Cart</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<link rel="StyleSheet" href="css/style.css" type="text/css">
|
by: ALuPin |
last post by:
Hi newsgroup users,
I have the following java-script:
</SCRIPT>
</head>
<body text='' link='' vlink='' alink='' bgcolor='FFFFFF'>
<p>
<center><TABLE cellSpacing=1 cellPadding=1 width="60%" align=center border=0>
|
by: Arash Dejkam |
last post by:
Hi All,
Is it possible to write on an <OBJECT type="text/html"> using
document.write() from within the html containing that tag the way we write
on a popup window? I couldn't do that after a lot of try.
Thanks in advance.
|
by: cirillo_curiosone |
last post by:
Hi,
i'm new to javascript. I started studing it on the web few weeks ago,
but still haven't been able to solve one big problem: HOT TO PASS VALUES
FROM A SCRIPT VARIABLE TO A CHILD HTML GENERATED BY FUNCTION.
Here'e the point:
I'm writing a simple website for showing my photographs. It has a
central page with many links (as many as galleries are).
|
by: ME |
last post by:
can someone tell me how to make this first one work??, located here:
http://javascript.about.com/library/scripts/blshowdatetime.htm#examplesource
This second one, well, dreamweaver eats the code, removes the code as bad.
Any help here? Please? 2nd located here:
http://www.dynamicdrive.com/dynamicindex6/clock3.htm
Appreciated,
M.E.
| |
by: qwweeeit |
last post by:
Hi all,
I'm a newbie in JS, but I've used it to print html
+ additional informations:
- list of links (also internals)
both text (document.links.text) and href
- title (document.title)
- URL, domain and referrer
- cookie
- last modification date (document.lastModified)
|
by: daveyand |
last post by:
Hey Guys,
Am stuck, i need to create an overlaying DIV to a webpage, but i want
it to go over only the HTML content of the page. So if the page is
only within the middle 500px of the screen i want to be able to add my
overlay over that. And ignore the whitespace either side of it.
Does that make sense?
This div will be added via an ad stamp, so i wont be able to change the
|
by: Kajsa Anka |
last post by:
Before I re-invent something I would like to ask if there exists some code
that can be used for create the HTML code for a calendar which I then can
include on a web page.
The module in the standard library can create a calendar but I would like
display my schedule.
My idea is that it would read a simple text file and then create a weekly
calendar view (and/or a monthly) with my schedule.
|
by: Reggie |
last post by:
Hi and TIA! I have a class file located in my root directory with all me
web pages. I call/use the class and it works fine. I have no imports
statements aspx or codebehind. My question is why? I thought the class file
had to be compiled and placed in the bin directory or added to the
App_Code(as a class file) folder. I don't have it in either it's simply in
the root. Now When I compile it and place the dll in the bin and remove the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 we have to send another system
| |