tgreer 189 Made Her Cry Team Colleague

camelCase ;)

tgreer 189 Made Her Cry Team Colleague

You can only have one background, for any given element (such as the body itself). However, you can have an overall background color, with an image fixed at the top that fades into that color.

Have you seen something somewhere close to what you want? Give us a link, and we can likely break it down for you.

tgreer 189 Made Her Cry Team Colleague

The "embed" tag may not allow that. What you may have to do instead is place the tag into a div, and then use JavaScript to completely rewrite the contents of the div. Research ".innerHTML".

tgreer 189 Made Her Cry Team Colleague

I have no idea what you're asking. Please be more specific!

tgreer 189 Made Her Cry Team Colleague

Thanks, "bridging" was the term I couldn't remember. I didn't need to buy a dedicated bridge, since any machine with both an ethernet port and a wireless card can attach to both networks and be configured to act as a bridge.

I appreciate your help.

tgreer 189 Made Her Cry Team Colleague

First, I don't work much with embeds, so this is speculation. But you need to give your element an ID, as such:

<embed id="myMidi" src="music.mid">

Then, you can get to the object using document.getElementById("myMidi") . At that point, try simply changing the source:

document.getElementById("myMidi").src = "newfile.mid";
tgreer 189 Made Her Cry Team Colleague

Try "borderLeft" instead. One of the unfortunate aspects of web development is that the CSS property may or may not have a corresponding JavaScript property, and they don't always map directly to each other. Also, as you can see, the spelling will differ.

So, "style.borderLeft" is the JavaScript property that changes the "border-left" CSS declaration.

Here's a nice cross-reference: http://codepunk.hardwar.org.uk/css2js.htm

AndrewSmith commented: Huge help! provided great reference as well +1
tgreer 189 Made Her Cry Team Colleague

What is an "offline web page"? Of course one can link a page to a database, by means of a program running on the server written in a server-side programming language. The program will connect to the database, perform the queries and logic, and emit an HTML document.

HTML is a declarative syntax for describing a document. A "document" is a static thing - it is NOT a dynamic entity that can interact with a database. HTML is interpreted by a browser, which has strict rules for what it can and cannot do on a user system.

Also, it is client-side technology, so an HTML document cannot interact with anything on the server.

If you want a web program that interacts with a database, you need to use a server-side programming language, such as PHP, ASP, ColdFusion, ASP.NET, or Java. I recommend PHP.

There is no way to answer a question such as "how hard would it be". I find it quite simple. Others struggle to learn PHP. Some already know SQL, others don't know how to pronounce "SQL".

tgreer 189 Made Her Cry Team Colleague

HTML alone cannot connect to a database. What you need to do is research server-side web programming languages. There are both scripting and compiled languages. The most popular at the moment is PHP, and Daniweb has a nice PHP forum. The other current contender is ASP.NET from Microsoft, and we have an ASP.NET forum as well.

Welcome to the forum.

tgreer 189 Made Her Cry Team Colleague

Research "input type file".

tgreer 189 Made Her Cry Team Colleague

May I make a suggestion? Have you explored the blog section? HTML and Web Design advice and experiences might make a good blog.

tgreer 189 Made Her Cry Team Colleague

First, there is a difference between Jscript and JavaScript. They are two different languages. Second, I don't know of any OS that will copy fully-formatted HTML to the clipboard. Sorry.

tgreer 189 Made Her Cry Team Colleague

Perhaps I wasn't clear... the PIX isn't really involved in this scenario. The corporate laptop should make all it's home network connections to 192.168.14.4, the IP given to the Netgear router by the PIX.

So, for example, if I want to remote control a home pc, I would configure the Netgear to port forward port 3389 to the 192.168.0.?? number of that home PC.

In order for the corp. laptop to print to a printer on the home network, I suppose I could configure a home machine as a VPN server, and connect through VPN.

In other words, I can manually configure each particular service via Port Forwarding. I was wondering if there is another way to make the corp. laptop fully participate in the home network.

tgreer 189 Made Her Cry Team Colleague

Actually, you would use CSS:

<input type="text" style="text-align: right">

I'm not sure what language the other poster is coding in; probably ASP.NET/VB.NET.

tgreer 189 Made Her Cry Team Colleague

I have an existing, perfectly functional, wireless network at home. The router is a NetGear WGT624v2. I understand SSIDs, WEP and WPA security, etc.

I also work at home, and my company has provided me with a laptop and router/firewall, a CISCO PIX 501.

My current configuration:

Cable Modem
----------------
   |
PIX 501
--------------------------------
  |                    |
Corporate Laptop     NetGear
                 -------------
                     |  |  |
                 Home Systems

The corporate laptop is cabled into the PIX, as is the NetGear Wirless router. The NetGear supports cabled and wireless connections.

Everything is fine, insofar as all systems can use the internet.

However, I want the corporate laptop to see resources on the "NetGear" network, including:

1) Remote Desktop Connection. I want the corp.laptop to be able to remotely control one of the home laptops.

2) Shared printers

3) shared folders

Note: the Corporate Laptop and the NetGear router are on the same network, getting their IPs from the PIX 501.

All other PCs get their IP addresses from the NetGear, which is configured as a DHCP server.

The "PIX network" is IP range 192.168.4, and the "NetGear network" is IP range 192.168.0.

Where would I start?

tgreer 189 Made Her Cry Team Colleague

Are you writing a web server? Or just a "site"? These headers are intended to be sent by the web server itself. If you are using Apache or IIS for example, you just need to code your pages, starting with the DOCTYPE declaration, and you don't need to worry about sending any headers.

tgreer 189 Made Her Cry Team Colleague

I know nothing about Dreamweaver, sorry. There is no magic to adding a PDF to your site. You simply upload it to your server as you would any other file. When the user browses to it, they either view or download the PDF depending on their system configuration.

tgreer 189 Made Her Cry Team Colleague

I know of course that the "C" stands for "Cascading", but I always prefer to think of it as "Concatenating". The various appropriate styles for an element concatenate together into an overall "meta" style for that element. Any duplicate values are replaced during this process. That helps me understand it a bit better when I'm designing a site.

tgreer 189 Made Her Cry Team Colleague

Yep, it looks find now. Thanks!

tgreer 189 Made Her Cry Team Colleague

That is not a correct answer. ViewState doesn't have anything to do with the value of HTML form objects and their corresponding server controls, only with the state of certain server controls that do not render as HTML Form objects.

tgreer 189 Made Her Cry Team Colleague

I am not other people. I am the center of the universe as far as I'm concerned.

Actually, they seem to render fine in this thread. Let me poke around a bit more.

tgreer 189 Made Her Cry Team Colleague

BBCODES don't seem to be rendering. Rather, not all of them are rending, in particular I notice the HTML, COLOR, and URL tags don't seem to be working.

tgreer 189 Made Her Cry Team Colleague

We're all happy to help. Please ask specific questions, and refrain from formatting your messages unless you're posting code. Welcome to Daniweb!

tgreer 189 Made Her Cry Team Colleague

Place them in a div. Position the div. Use CSS for the images to make sure the padding, margin, and borders are set properly and uniformly.

tgreer 189 Made Her Cry Team Colleague

Please do not take threads off-topic. I'm closing this one, since it has gone off-topic. Lavin, feel free to start another thread if you have more questions. When you do, please heed the reminders to user proper spelling, punctuation, and grammar. Thanks.

tgreer 189 Made Her Cry Team Colleague

I moved this to Troubleshooting Web Browsers.

tgreer 189 Made Her Cry Team Colleague

Are you addressing me? My meaning and purpose is twofold:

1. We are a professional forum, so we should try to communicate well. That means writing "your" instead of "ur", etc. - "ur" isn't a word. Daniweb doesn't have any hard rules against lazy writing, but you'll find that the most qualified members tend to ignore posts filled with poor spelling and nonsense words.

2. For web site creation, which is the topic of this post, I recommend coding your pages directly, instead of using FrontPage or a similar tool. XHTML/HTML isn't that difficult, and you'll develop more skill and flexibility by learning it and writing it yourself. I also recommended the TextPad software as a good general-purpose text editor.

I hope I've answered your questions.

tgreer 189 Made Her Cry Team Colleague

Please use the code tags when posting code. Thank you.

tgreer 189 Made Her Cry Team Colleague

There is no such thing as a "page size" in HTML. The user can size their browser to any size they wish. That's as it should be.

JavaScript does provide, however, a window.resize() method. Using it creates a very negative user experience. The only way I've seen this work well is for your main page to open a new window, and size the new window. Use the window.open() method.

tgreer 189 Made Her Cry Team Colleague

You can use window.open() . I suggest using a DIV, instead. For an example, look at any of my technical articles. Click the header, and a popup regarding the logo appears. All the CSS and scripts can be found by viewing the source on an article page.

tgreer 189 Made Her Cry Team Colleague

Please reserve formatting for code samples. Please use English, not 1337-sp33k.

I recommend simply learning XHTML and using a good text editor. I use TextPad.

tgreer 189 Made Her Cry Team Colleague

While there are a number of ways to generate PDFs server-side in response to a web form, you cannot force PDF creation client-side. That would be going against the very nature of the web model.

tgreer 189 Made Her Cry Team Colleague

That isn't "null", it's a hyperlink to an anchor. In the abscene of any specific anchor, it will refer to the top of the document.

Please post your code within either the HTML,CODE or INLINECODE forum tags.

tgreer 189 Made Her Cry Team Colleague

I suggest 1024x768 for most sites. I do a lot of work for government and financial institutions, which tend to lag behind the general public, so for them I try to work with 800x600.

tgreer 189 Made Her Cry Team Colleague

That's what CSS is for: positioning, sizing, and styling HTML elements. It sounds like you're either not sizing your table elements, or if you are, you're using percentages.

Instead, you should provide CSS rules for the table, tr, and td elements, using absolute pixel measurements.

For example:

<style type="text/css">
table {width: 500px;}
</style>

Place that in the head of your document, and any table will be 500 pixels wide, no matter the browser window size or screen resolution.

tgreer 189 Made Her Cry Team Colleague

I find this thread totally baffling. You started out by saying you already knew how to use window.open(), and close the thread by saying that the window.open() method totally saved you. If you didn't know about window.open(), you saw it mentioned in the very first reply to your question...

As long as you're happy, I guess. <shrug>

tgreer 189 Made Her Cry Team Colleague

The "position" CSS declaration is meaningless without setting the "top" and "left" style attributes of all relevant elements in the box model.

It isn't clear what behavior you're expecting by both nesting and floating the divs... I have a hard time visualizing how this layout would appear, which is usually a sign that something is wrong with the organization.

Can you draw a picture, or at least try to paint a word picture of the layout you're trying to achieve?

tgreer 189 Made Her Cry Team Colleague

There is also the window.replace() method, which takes a string inside the parantheses. The difference between the .replace() method and the .location property, is that .replace() doesn't store the new page in the browser history.

tgreer 189 Made Her Cry Team Colleague

You want "codes for a box that will disable the script"? I'm sorry, I cannot comprehend that statement at all.

If you want to display HTML code segments on your page, then you need to learn about "HTML entities". To display an open angle bracket, for example, you'd add &lt; to your page's source. The close bracket is &gt; .

tgreer 189 Made Her Cry Team Colleague

No.

tgreer 189 Made Her Cry Team Colleague

I don't know how to be more clear. Have you read and understood the answers you've already been given?

1. The document.write() method is out-of-date. However, if you're using an older DOCTYPE, it should still work for you.

2. That being the case, you can author an entire page using document.write() , so you can place HTML, scripts, event handlers, whatever you like, on that page, just as you would any other page.

3. The code you show uses a plus sign to concatenate strings, for some reason. It isn't necessary, but as you've shown it, there would be no space between "javascript" and "src=". You need to add a space before "src".

4. The document.write() method doesn't "call" anything. It writes a page. That page will need to have the code necessary to call a function... which is the same for any page.

5. If you plan on using document.write() , you'll need a corresponding document.close() .

My questions to you would be:

1. Why are you using document.write() ? If you know enough to write the code into your new window, chances are you know enough to simply author that page offline, and refer to it by URL in your window.open() call.

2. Could you include the javascript in your main page, and have it act on your child window through DOM methods?

Also, please refrain from coloring or formatting your posts. We like to reserve formatting for code …

tgreer 189 Made Her Cry Team Colleague

JavaScript uses the semi-colon for line-termination. For the proper method(s) of placing the value of a textbox into a variable, please refer to the posts from myself and hollystyles in this thread.

If you have new, different questions about JavaScript, please start a new thread.

tgreer 189 Made Her Cry Team Colleague

Ok... so I guess the essential nugget of information you were after is the "descendant selector" syntax. Note that it selects all descendants, not just child elements, but also their child elements, and so on. You should also understand exactly what a "child" element is, vs. for example an "adjacent sibling" element.

If you only want to select direct child elements, you'd use: .test1, .test1 > .test2 {} Here is the reference on Child Selectors.

tgreer 189 Made Her Cry Team Colleague

What you have are two rules. The first rule applies to every element with the class of test1. The second rule applies to every element with the class of test1, as well. In addition, the second rule applies to any element of class test2 which is a descendant (child, child of a child, etc.) element of an element of class test1.

So, you have style declarations for class test1 split among two rules. You also have two height declarations in the second rule... which is strange. It also isn't clear which height declaration will "win", because one of them is flagged as "!important".

All-in-all, a very strange pair of rules.

tgreer 189 Made Her Cry Team Colleague

There is no way to disable the back button reliably. Every method, short of writing your own browser, can be easily disabled. This question has been asked millions of times, for years and years. The "back" button is integral to how browsers work, and is firmly a part of the user interface and the collective "user expectation". Trying to fight it is usually a sign of poor understanding of the web, a flawed application model , and/or bad design!

Users will press the "back" button. They will be irritated if it doesn't work. They will often simply close the browser completely if your application doesn't behave as they expect.

tgreer 189 Made Her Cry Team Colleague

You seem to be asking several questions. Please narrow your posts down to a single, specific question, and I'll try to answer it.

Paragraphs can contain anchors. Anchors cannot contain paragraphs, as in your original post.

With your latest post, I think you're referring to the border property? If you don't want a border, for your image or anchor, apply the "border-style: none" CSS property to those elements.

tgreer 189 Made Her Cry Team Colleague

It depends on the DOCTYPE you're using. The "document.write()" method is deprecated in XHTML.

You'd also need a space before "src".

tgreer 189 Made Her Cry Team Colleague

If the text element has an ID, as it should it XHTML, the DOM method is: document.getElementById['myId'].value I'm not sure what you're hinting at by "after the submit", though, in your question.

tgreer 189 Made Her Cry Team Colleague

There isn't a "solution", per se. The structure you're trying to create isn't a valid structure, for several reasons. Your H3 tags aren't closed. Your paragraph tags aren't closed. You cannot place block-level elements, such as paragraphs, within inline elements, such as anchors.

You also can't wrap multiple elements inside of a single anchor.

Please describe what you're trying to do, as the code you posted as an example of your format is syntactically meaningless.

tgreer 189 Made Her Cry Team Colleague

There are no "scrollbar" objects in the standard web DOM for HTML, XHTML, etc. Internet Explorer has implemented some non-standard objects.

In other words, you're writing "broken code", which IE will understand, but which any browser that adheres to standards will not.