Re: [Proto-Scripty] Re: Next dumb question

2011-02-18 Thread Jeffrey Lee
As it turns out, if you have the firebug extension installed in Safari, you can 
view the current document in the web inspector.
___
Jeffrey Lee
http://www.jeffreyalanlee.com
jlee...@gmail.com




On Feb 18, 2011, at 19:15 , Jon B. wrote:

 In Firefox, if you select some text and then choose the View
 Selection Source option in the context menu, it *does* show you the
 current DOM and not the original HTML.
 
 ~Jon
 
 On Feb 18, 3:01 am, Bertilo Wennergren berti...@gmail.com wrote:
 On Fri, Feb 18, 2011 at 06:16, RobG rg...@iinet.net.au wrote:
 View source shows the original HTML used to create a document,
 subsequent changes to the document do not modify that.
 
 It's just how browsrs work, they could show an HTML representation of
 the current document (the innerHTML property of the HTML element goes
 pretty close) if they wished.
 
 The Firefox extension Web Developer has the option View generated
 source, which actually does that. It can be quite handy at times.
 
 --
 Bertilo Wennergren
 berti...@gmail.comhttp://bertilow.com
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
 To post to this group, send email to prototype-scriptaculous@googlegroups.com.
 To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/prototype-scriptaculous?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Next dumb question

2011-02-17 Thread Jeffrey Lee
So why is it that when Javascript is updating the document, does the source not 
show the change?  Does show-source merely reflect that which was loaded, but 
not the actual current document?  Why is that?
___
Jeffrey Lee
http://www.jeffreyalanlee.com
jlee...@gmail.com




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Re: Element.update not working with div inside a table

2011-02-16 Thread Jeffrey Lee
Shows how outdated my HTML is.  Thanks for the pointer.  Its funny, when I was 
googling around apparently once upon a time it was at least tolerated, if not 
officially acceptable, to have div as a child of table.
___
Jeffrey Lee
http://www.jeffreyalanlee.com
jlee...@gmail.com




On Feb 15, 2011, at 23:20 , T.J. Crowder wrote:

 Hi,
 
 That HTML is invalid. You can't have a `div` as a child of `table`:
 http://www.w3.org/TR/html5/tabular-data.html#the-table-element
 
 If you want to subdivide a table like that, you probably want `thead`
 (for your headers) and one or more `tbody` elements:
 
 table
  thead
tr
  thItem/th
   thTransaction Type/th
   thQuantity/th
  thAmount/th
   thTransaction comments/th
/tr
  /thead
  tbody id = transList
tr
  bunch of table data
/tr
tr
  bunch of table data
/trtr
   bunch of table data
/tr
  /tbody
 /table
 
 ...and then your update will have to be valid `tbody` content (e.g.,
 rows).
 
 Example:
 http://jsbin.com/evuxe3
 
 HTH,
 --
 T.J. Crowder
 Independent Software Engineer
 tj / crowder software / com
 www / crowder software / com
 
 On Feb 15, 10:59 pm, Jeff jlee...@gmail.com wrote:
 This is a rails generated webpage.  I've created a table definition as
 follows:
 
 table
   tr
 thItem/th
 thTransaction Type/th
 thQuantity/th
 thAmount/th
 thTransaction comments/th
   /tr
 
 div id = transList
 tr
bunch of table data
   /trtr
bunch of table data
   /trtr
 bunch of table data
   /tr
 /div
 /table
 
 If I execute a $('transList').update('Test') or frankly any other text
 or html, the existing table data remains, and the updated text is
 placed above the entire table.  However, if I do a view - source,
 this new data doesn't show up in the page source at all, only the old
 table data.
 
 I'm having this problem in both Safari and Firefox.  Any suggestions?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
 To post to this group, send email to prototype-scriptaculous@googlegroups.com.
 To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/prototype-scriptaculous?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.