Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames Or?? 1

Status
Not open for further replies.

aarushi2001

Technical User
Nov 16, 2005
109
US
Hi Guys,

I am creating a website, where the menu is on left side and as user clicks on menu.. page keeps changing on right side..

My one option is frame? But frames have very bad reputation.. is there an alternative to what I am trying to do? Any suggestions?

I need the left menu cos it consists of vendor info and helps user toggle between diff vendors..
 
It sounds like you would be better off with a server side solution that dynamically colours your menu items.
Then again if you insist that reloading the menu is going to be such a headache you will have to use javascript to change the colours.

Personally, and this is personal opinion, I would rather the menu reload than to work within a frameset.

Foamcow Heavy Industries - Web design and ranting
Buy Languedoc wines in the UK
 
nice post on AJAX foamy, although i'm unsure on this
Display manipulation.

Even though it seems that Ajax is purely a UI technology, it's not. It's actually a data synchronization, manipulation and transfer technology. For maintainable and clean web applications, it's a good idea not to have Ajax/Javascript manipulate the interface directly at all. Javascript can stay separate and simply manipulate the XHTML/HTML DOM, with CSS rules dictating how the UI displays that data. See this post for a simple example of using CSS instead of Javascript to control display.

This is rather a broad scope, isn't the main point in AJAX is to allow the retrival of data syncronously, without a page refresh and enabling you to change the display?

I use it on a voting system, this eliminated 1stly the pop-up window i was using (which was being blocked for many - via their blocker), and the need to refresh the page.

I call the update SQL function via AJAX, it returns what the number of votes is and I 'MANIPULATE' the 'DISPLAY', so the screen reflects the current number of votes.

Why does the article you post seem to imply I shouldn't manipulate the display but i should use ajax for a voting system, the writer has completely contradicted themselves, haven't they?

I don't see how I can use CSS to change the content of the innerHTML of a DIV via the DOM.

is there a way?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top