Coding"Generated" web page source wtf

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  CHYRON (DSMITHHFX)  
 To:  ALL
39594.1 
I'm trying to troubleshoot some non-functioning form submit buttons in a Pyrocms screen (they don't work on clean installs for the past two releases), and discovered an odd thing: although the 'plain' web page source code looks pretty kosher, if I look at the "generated" source (via Firefox "Web Developer" add-on), the opening and closing form tags are dropped, viz:

--- 'plain' source:
html code:
</form> <!-- closes "filter" form" -->
		</fieldset>
		<div id="filter-stage">
			<form action="http://localhost/pyrocms-stock210/admin/blog/action" method="post" accept-charset="utf-8">
			<div style="display:none">
				<input type="hidden" name="csrf_hash_name" value="a2ff817a572e6625d051e6f0d4693dc7" />
			</div>
			<table> <!-- begins blog post listings -->

[This form includes a closing tag]

--- "generated source" (note missing opening form tag, and hidden field "csrf_hash_name"):

html code:
</form>
		</fieldset>
		<div style="display: block;" id="filter-stage">
			<table>

---

The closing tag for THIS form is also missing in the "generated" source (although the code snippet includes the closing tag for the "filter" form, which also has it's opening tag. A third form on the page is also apparently complete with all tags.

Could this be where the problem with the dead submit buttons lies?

----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  CHYRON (DSMITHHFX)     
39594.2 In reply to 39594.1 
quote:
Could this be where the problem with the dead submit buttons lies?

No, of course it isn't! Why would you think such a thing!?!?!


The question you should be asking is why the form is being stripped out.

You can start by disabling all JavaScript and see if the form is still stripped out.

Also, identify the differences with this form and the ones that are not stripped out.

And of course check different browsers - both Chrome and Opera have the ability to inspect the document and see if the form tag has been removed or not.
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
39594.3 In reply to 39594.2 
quote: BP
No, of course it isn't!


Actually, it is. Just wish it had occurred to me sooner, but I thought it a looong shot at best.

----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  CHYRON (DSMITHHFX)     
39594.4 In reply to 39594.3 
:| You may wish to educate yourself...

msg:39243.1
msg:39114.1
msg:28995.1
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
39594.5 In reply to 39594.4 
I'm not clicking those...

----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  CHYRON (DSMITHHFX)     
39594.6 In reply to 39594.5 
Your loss.
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
39594.7 In reply to 39594.6 
I don't trust you not to go off on some whacked tangent. :-B

Reading through this, some are saying "generated" source isn't really all that accurate. In this one instance, it provided a valuable clue as to what may have been the problem (or at least, suggested a workable solution).

I just didn't have a clear understanding of what "generated" source meant (and still don't).

----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  CHYRON (DSMITHHFX)     
39594.8 In reply to 39594.7 
Get Firebug and inspect the DOM tree instead.

(And pay attention to the last four sentences in my first post!)
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
39594.9 In reply to 39594.8 
My browser is showing them as "yadda yadda yadda".

----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
39594.10 In reply to 39594.8 

You were right about the javascript wottsit (which I kind of knew anyway, and just wanted a working patch regardless):

 

http://www.pyrocms.com/forums/posts/view_reply/17849


----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  CHYRON (DSMITHHFX)     
39594.11 In reply to 39594.7 
He was trying to tell you that the blue text that he used denotes sarcasm. But Peter, being Peter, couldn't just reply to #3 with a simple "blue text means sarcasm" clarification, he would rather make things difficult for you to follow. Matt really needs to tweak his AI, and his API while he's at it.

bastard by name, bastard by nature

0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  99% of gargoyles look like (MR_BASTARD)     
39594.12 In reply to 39594.11 

I just assume he is being sarcastic.

 

What makes this a bugger is that some of their js is minified.


----
"You have unknowingly complimented the author: telling a journalist they should be a novelist is like telling a stripper they should be a ballerina. "
0/0
 Reply   Quote More 

Reply to All    
 

1–12

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats