atraub's Profile User Rating: *****

Reputation: 760 Master
Group:
Mentors
Active Posts:
2,052 (0.9 per day)
Joined:
23-December 08
Profile Views:
50,679
Last Active:
User is offline Mar 14 2015 02:22 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Classic
Your Car:
Who Cares
Dream Kudos:
625
Expert In:
Python

Latest Visitors

Icon   atraub I just learned about Python's nonlocal keyword... how interesting!

Posts I've Made

  1. In Topic: HTML injection not working

    Posted 14 Mar 2015

    Nah, it's not a chrome extension, and I think those warnings are just for the jquery module. Considering it's coming from google code, I don't think those errors are worth worrying about. It's something else, but hell if I can figure out what.
  2. In Topic: HTML injection not working

    Posted 14 Mar 2015

    Oops! I thought the link worked. Here's the site where you can see it running scarf


    and here's the console:
    Denying load of chrome-extension://gkojfkhlekighikafcpjkiklfbnlmeio/js/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
    
    jquery.min.js:3 Uncaught TypeError: Cannot read property 'createDocumentFragment' of undefinedjquery.min.js:3 n.extend.buildFragmentjquery.min.js:3 n.fn.extend.domManipjquery.min.js:3 n.fn.extend.appendscarf.js:30 (anonymous function)jquery.min.js:2 n.Callbacks.jjquery.min.js:2 n.Callbacks.k.fireWithjquery.min.js:4 xjquery.min.js:4 n.ajaxTransport.k.cors.a.crossDomain.send.b
    


    EDIT:
    Here's the entire function:
    		var pageTable = {};
    		var currentPage;
    		var pageCount = 0;
    		var pageSize = 400;
    
    		var ICON = 0;
    		var PAGE = 1;
    
    		var RIGHT = 0;
    		var LEFT = 1;
    
    		function initialize(){
    			//for each div with a class of "page"
    			$('.page').each(function(i, obj) {
    
    				//if the page tag has an icon designated for use in the nav bar, creat the icons
    				if(this.hasAttribute("icon")){
    					var menIcon = $("<div class='pageNavIconImage' onclick='updateCurrentPage("+i+")'></div>");
    					menIcon[0].style.background = "url("+$(this).attr('icon')+")";
    					menIcon[0].style.backgroundSize = "contain";
    					$(this).removeAttr("icon");
    
    				//if there is no such icon, just use the default one designated in the css
    				} else {
    					var menIcon = $("<div class='pageNavIconDefault' onclick='updateCurrentPage("+i+")'></div>");
    				}
    
    				//check if the div receives its html from an external document
    				if(this.hasAttribute("source")){
    					//if it does, read the html file
    					$.get($(this).attr('source'), function(data){
    						$(this).append(data); //inject the html into the div
    						$(this).removeAttr("source"); //and remove the attribute from the tag
    					});
    				}
    				
    				//update the pageTable
    				pageTable[i] = [menIcon,$(this)];
    				$('#pageNavMenu').append(menIcon);
    				$(this).hide();
    				pageCount++;
    			});
    
    			currentPage = 0; //the current page being viewed
    			$(pageTable[currentPage][ICON]).attr("id","selected");
    			$(pageTable[currentPage][PAGE]).show();
    			$('#site').attr('width',pageSize*pageCount);
    		}
    
    


    Be kind, I'm more of a backend developer so I'm not great at this sort of stuff.

    EDIT 2:
    Guess I need some more documentation haha.
  3. In Topic: HTML injection not working

    Posted 14 Mar 2015

    Oh, that was just a copy and paste error from copying it from my code to DIC. The full script is quite a bit longer. That wasn't the problem.
  4. In Topic: HTML injection not working

    Posted 14 Mar 2015

    Granted, the more I think about it, the more I realize why this is a bad idea to begin with haha.
  5. In Topic: Webdriver- Save to a Network FileServer

    Posted 1 Jul 2014

    So, where's your code? And a copy/paste of the exact error message?

My Information

Member Title:
Pythoneer
Age:
Age Unknown
Birthday:
October 24
Gender:
Forum Leader:
Python
Full Name:
Adam
Years Programming:
7
Programming Languages:
Python, Java, C/C++, C#, VB.net, PHP, SQL

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.learningpythonprogramming.com/
Twitter:
teraQuotes

Comments

Page 1 of 1
  1. Photo

    Dogstopper Icon

    07 May 2013 - 06:55
    Thanks man. Though, in my eyes, it's more like retirement. :p
  2. Photo

    atraub Icon

    06 Mar 2013 - 22:30
    This is obviously more proof that women can't resist me.
  3. Photo

    mamelove25 Icon

    19 Feb 2013 - 10:58
    Hello My Dear, My Name is Mame. i saw your profile today and became interested in you,i will also like to know you more,and if you can send an email to my email address,i will give you my pictures here is my email address (mame25live@yahoo.co.uk) I believe we can move from here! Am waiting for your mail to my email address above because i have much to tell you,
    love Miss Mame.
  4. Photo

    Simown Icon

    20 Sep 2012 - 11:01
    Wow promotion! Congratulations on becoming a mentor. See you about the forum!
  5. Photo

    VedranK Icon

    19 May 2012 - 12:54
    Bro teach to me how to haxz0r bro.
    Sorry, found your profile in the python subforum and after seeing the last comment here I just could resist ^_^
    Anyway, keep up the good work, cheers!
  6. Photo

    Motoma Icon

    21 Jun 2011 - 18:32
    how to write mad codez to steel cr3d1tc4rdz 4 money
  7. Photo

    atraub Icon

    05 Jun 2011 - 05:51
    we have forums for a reason, please use those rather than posting on my profile.
    Clarification:
    My profile wall is not a forum... especially not a Java one.
  8. Photo

    muzakir Icon

    01 Jun 2011 - 00:16
    how to write a program for maximum occurence values in java arraylist
  9. Photo

    Curtis Rutland Icon

    04 May 2011 - 06:29
    Grats on the promotion!
  10. Photo

    Dogstopper Icon

    25 Jan 2011 - 15:06
    Looking good with the Author and DIC++ badges! Thanks for your contributions!
  11. Photo

    Simown Icon

    23 Jan 2011 - 16:31
    Hey atraub, thanks for the add. I've been floating round the python forum for a while.
    I have exams all week though and then next week I can start my Django project! Which means a hell of a lot of forum questions no doubt!
    I saw your tutorial in linked lists, it looked great, I'll get more time to read it later when I'm not so tired :)
  12. Photo

    EnvXOwner Icon

    17 Jan 2011 - 16:53
    I got the image, for my wishlist on Newegg, in my blog. :)
Page 1 of 1