Forum Moderators: mack

Message Too Old, No Replies

Definiton Requested Please: "Inline"

Inline

         

Altstatten

5:38 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



Question is, what does "inline" mean?

I looked it up on Webopedia.com and it says:

"Short for inline HTML, an advanced server-side scripting/programming language that functions as an extension to HTML, allowing the customization of dynamic Web sites that depend on interaction with databases. iHTML eliminates the need for Javascript or CGI programs as it provides the same functionality."

My next, related, question was going to be, "how can a link that's normally wrapped in java-script (like for a pop-up) be written without the js?

The definition for inline above makes it sound like the link would somehow need to be written, "inline".

Is this correct or am I so far off-base here I've made otherwise intelligent people want to cry and throw things?

Marshall

5:57 pm on Aug 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



inline is placing two block elements in line rather than stacked as they would normally appear. Using <p> as an example:
CSS
p {display:inline}

HTML
<p>Some Text 1</p>
<p>Some text 2</p>

Normally, the output would be:
Some Text 1
Some Text 2

But, inline, the output is:
Some Text 1 Some Text 2

This is commonly used for <ul> menus that are displayed across the page rather than stacked.

As for the second question, I am not really clear on what you are asking. Sorry.

Marshall

jtara

6:36 pm on Aug 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I love how people in this industry take generic terms and use them for branding... (NOT)

iHTML, or "inline HTML" is a commercial, proprietary, server-side scripting language from a company called "Inline Internet Systems, Inc." Never heard of it before today.

And has absolutely nothing with the generic term "inline" - which can mean so many different things in different contexts that it is close to meaningless.

The classic definition(s) in computer science:

1. Including code that is used in more than one place directly inline instead of putting it in a function/subroutine/etc. That is, the code is duplicated "inline" for each instance. Slightly speeds-up execution at the expense of program size, as there are no "call" and "return" statements to be executed. Modern, optimizing compilers will do this for you automatically for small functions. Only assembly-language programmers typically do this manually.

2. Unrolling loops so as to slightly speed-up execution by avoiding the branch back to the top of the loop. That is, if you want to do something 10 times, instead of making a loop, you just repeat the code 10 times. (Typically done only in assembly code, as good modern optimzing compilers will do this for you automatically.) This is sometimes referred-to as "inlining".

3. Embedding code in a different language within code of another. Classically, embedding assembly code directly in, say, a C program using an extension pragma. So, you can just flip back and forth from C to assembly "inline".

In general, embedding something "right here" rather than "over there" and having to call/branch/link to it.

I don't use Webopedia. They seem more interested in having a definition for everything than having the RIGHT definitions.

[edited by: jtara at 6:43 pm (utc) on Aug. 4, 2007]

Altstatten

6:43 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



Jtara, that'll work. I think your definition, #2 explains it best for me.

I probably need to start another thread for it but can you tackle the second part? Alternate method(s) of writing a link without the javascript wrapper, yet accomplishing the same objective?

Just an answer from 30,000 feet is what I'm after. Thanks again.

Altstatten

6:43 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



Jtara, that'll work. I think your definition, #3 explains it best for me.

I probably need to start another thread for it but can you tackle the second part? Alternate method(s) of writing a link without the javascript wrapper, yet accomplishing the same objective?

Just an answer from 30,000 feet is what I'm after. Thanks again.

jtara

6:45 pm on Aug 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't create a pop-up without Javascript.

The best you can do is to open in a new window (TARGET=...), but that will create a complete browser window - not a pop-up - and is inconsistent in behavior between browsers. In particular, most tabbed browsers will open the new window in a tab, instead.

The iHTML claim of "eliminating the need for Javascript" is nonsensical. It's simply a server-side scripting language. You can't do client-side stuff with a server-side language. Sure, there are a lot of things that are commonly done in Javascript that could also be done at server-side - but at the expense of a page load.

[edited by: jtara at 6:49 pm (utc) on Aug. 4, 2007]

Altstatten

6:46 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



Thank you!