473,657 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

building javascript 'wrappers'?

OK, I am looking for advice or tips and suggestions. I have overcome
a lot of the obstructions I had to building the page design my
customer was asking for. I am looking now at ways to deliver content
dynamically within the wonderful framework I created. Whilest I look
into the various methods of delivering content within a container of
one form or another in the existing HTML, I am also exploring the
possibility of using some form of 'wrapper' for existing flat pages
sorta like how geocities does to user pages to add the yahoo pull-down
div layers and such.

While doing some testing, I notice that if I just add a javascript tag
in the beginning, I can't use the document.body.A ppendChild option for
the div layers unless I call the function that builds said layers from
a <body onload="">. When I do it from the onload event, the existing
HTML layers can effect the placement of the div layers even when I
have the CSS position set to absolute.

Short of using some form of server side code to insert at least the
DIV content in prior to dropping the file on the user's browsers, I
was wondering if there were any other suggestions on how to do this
with a minimal amount of coding in the HTML document itself. One of
my hopes is to limit the 'modifications' to any standard HTML file to
one or two lines so that anyone else developing pages can do so
easily, and/or I can create reasonably foolproof server-side wrappers
to call the javascript code to paste on the 'look-and-feel' elements
on just about any web page.

I have a feeling I will probably go the server-side route anyway, but
I was just curious what other suggestions there might be out there.

KL
Jul 20 '05 #1
1 2942
This is precisely the type of thing that server side includes were
created for. Any sort of solution using JavaScript would be clunky by
comparison.

Bernie

kl*****@hotmail .com (Catherine Lynn Smith) wrote in message news:<5f******* *************** ****@posting.go ogle.com>...
OK, I am looking for advice or tips and suggestions. I have overcome
a lot of the obstructions I had to building the page design my
customer was asking for. I am looking now at ways to deliver content
dynamically within the wonderful framework I created. Whilest I look
into the various methods of delivering content within a container of
one form or another in the existing HTML, I am also exploring the
possibility of using some form of 'wrapper' for existing flat pages
sorta like how geocities does to user pages to add the yahoo pull-down
div layers and such.

While doing some testing, I notice that if I just add a javascript tag
in the beginning, I can't use the document.body.A ppendChild option for
the div layers unless I call the function that builds said layers from
a <body onload="">. When I do it from the onload event, the existing
HTML layers can effect the placement of the div layers even when I
have the CSS position set to absolute.

Short of using some form of server side code to insert at least the
DIV content in prior to dropping the file on the user's browsers, I
was wondering if there were any other suggestions on how to do this
with a minimal amount of coding in the HTML document itself. One of
my hopes is to limit the 'modifications' to any standard HTML file to
one or two lines so that anyone else developing pages can do so
easily, and/or I can create reasonably foolproof server-side wrappers
to call the javascript code to paste on the 'look-and-feel' elements
on just about any web page.

I have a feeling I will probably go the server-side route anyway, but
I was just curious what other suggestions there might be out there.

KL

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1793
by: Paul Rudin | last post by:
I'm having a problem with the python wrappers generated from a type library. The symptom is that I get failures to find connections points inside the wrappers when called from DispatchWithEvents or WithEvents - e.g. "com_error: (-2147220992, 'CONNECT_E_NOCONNECTION', None, None)" It seems that the coclass_clsid property of some classes is incorrect. It seems that when a coclass in the type library has multiple " dispinterface" it can...
18
3500
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections (from GUIs built with wxPython) and publish realtime data updates to them. Any advice on where to start? Thanks. A.B.
5
4899
by: Fred | last post by:
Hi, I'd like to turn a command-line script into a Windows GUI app using the native widgets so as to reduce the size of the binary (ie. no QT, wxWidgets, et al.) I came up with the following list of tools to access the Win32 API: - PythonWin (MFC) http://www.python.org/windows/pythonwin/ - ctypes http://starship.python.net/crew/theller/ctypes/
4
1402
by: Steve Jorgensen | last post by:
A while ago, I posted a 1/2 formed idea for what was probably an overcomplicated scheme for improving how we create content using the DOM API. Since then, I've been refactoring some real-world code that builds content with DOM, and have come up with a much simpler, more practical idea that I've had success in implementing. The problem in a nutshell is that, to build a tree or fragment in the DOM, it's just about impossible to arrange the...
6
5729
by: news | last post by:
I need some concise, easy to grok examples of what .Net (preferably C#.Net) has over just using old ASP or PHP with JavaScript. See, I'm a PHP guy, and while I started server-side scripting with ASP, I hate it. But last year I had the opportunity to work with a company that was developing sites in VB.Net. And I was wowed! The stuff they could do was really nice and impressive, and I got the chance to learn a little about datagrids. Was...
1
6877
by: TC | last post by:
Every time I open my project, I get a warning which says "There are updated custom wrappers available for the following referenced components: Office." When I double-click on the warning, I get a dialog box which says "One or more custom wrappers for COM components have been installed on your machine after you added references to those COM components. These wrappers may provide additional capabilities not offered by the auto-generated...
20
2634
by: Thorsten Kampe | last post by:
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor PyQT are actually what I want (because the lack of GUI builders and they don't really look good on Windows and Linux). Komodo itself is an excellent example of a - at least Python driven -
11
1560
by: v4vijayakumar | last post by:
Are there any simple javascript building blocks available? Like, Google web toolkit. But, I don't want to write code in java and then compiled into javascript. I am just looking for portable ajax/ javascript libraries. Thanks in advance.
30
8290
by: Jeff Bigham | last post by:
So, it appears that Javascript has a recursion limit of about 1000 levels on FF, maybe less/more on other browsers. Should such deep recursion then generally be avoided in Javascript? Surprisingly, deep recursion actually isn't that slow for what I'm doing. Programming this task recursively is so much more straightforward to me, but currently I'm forced to use an ugly hack to avoid going over the 1000 level limit. Of course, it could...
0
8306
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,...
0
8732
jinu1996
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...
1
8503
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,...
0
8605
tracyyun
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...
0
7327
agi2029
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...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1615
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.