Jump to content

jekillen

Members
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

1 Neutral

About jekillen

  • Rank
    Newbie
  • Birthday 10/11/1948

Previous Fields

  • Languages
    html/css, javascript, actionscript, php, mysql

Contact Methods

  • Website URL
    http://www.jekillen.com

Profile Information

  • Location
    Southern Oregon
  • Interests
    art, music, web developement
  1. I have javascript code that is intended to set two cookies. The first one in this assignment document.cookie = 'TAscrollto=135; path=/; domain=192.168.1.27; max-age=3600; ' and the second in this assignment: document.cookie = 'TAscrollto=135; path=/; domain=192.168.1.27; max-age=3600; CMscrollto=199; path=/ domain=192.168.1.27; max-age=3600; ' The reason the first cookie is reproduced in the second assignment is the way my cookie manager utility works. I am assuming that would not make a difference. Both of these assignments are made just before the page reloads in call to win
  2. I have developed a web based text editor that I use for editing text files on a site that are owned by the web server user account (unix type system). These file contains many hundreds of lines of code (including comment blocks). When the contents of the text file is displayed in a textarea for editing of text, it overflows the visible area of the textarea element. I can scroll in the textarea with mouse scroll ball*, but no scroll bars are visible unless I scroll into the overflow area to the right of the textarea. There is a left/right scroll bar on the bottom, but that is p
  3. jekillen

    Help with regex?

    In original post I neglected to include an embedded double quote set around \$_ref I got what I am looking for: $_ref = 'help'; $_testStr = "do you want \" \$_ref \", or do you want $_ref?"; preg_match('/(\".*(\\$).*\")/', $_testStr, $_match); $_alt = str_replace($_match[2], '\\$', $_match[0]); $_testStr .= "\n".str_replace($_match[0], $_alt, $_testStr); in html ... etc.. <pre> <textarea > do you want " $_ref ", or do you want help? do you want " \$_ref ", or do you want help? </textarea> <spam><code> do you want " $_ref ", or do you want help? do you wa
  4. Has a node.js forum category been considered? I have found a node.js specific forum, but the traffic there appears to be mostly nil. As I read the Apress text about it, it does not appear to be to usable accept as a local application server that would be intalled on 'localhost' and used with a localhost browser interface. I don't see how it would be used with a registered domain name, accept via a non standard, high numbered port. Someone did not like my last posts on stackoverflow and I don't know why, so I can't go there. Thanks
  5. jekillen

    Help with regex?

    Hello; I have been doing php for some time and I had initially become somewhat knowledgable on how to use create and use regular expressions (with the old regex funtions). But I have been avoiding regex as slow, in favor of designs that would allow string manipulation functions where and when ever possible. But there are situations where it is un avoidable, as now: I am working on an html base text editor. The text to be edited is loaded into a textarea element in the editors html. If the text to be edited is a php and/or html/javascript code file, there are cases where there
  6. So, if I use 'htmlspecialchars($content)' will I have to contend with the special chars once the file contents are visible and editable in the form textarea? Is TinyMCE a completely html/php text editor? My reason for doing this is because of ownership issues when php is used to create files, directories, edit files, upload content, copy content, etc. My aim is to create a custom content managment system that can be completely used via a web interface, not needing ftp access. Because it is content management it will be strictly limited to registered admin users. The core and foundati
  7. I would think that the interpreter could figure out that this was not productive syntax, as it occures where there is absolutely no sense for it. The interpreter should be able to recognize a conditional statement, branching statement such as switch, and a looping statement; and distinguish it from a function call; and find a semicolon after the closing parenthesis to be adverse to the process of the code. The use of string true or false instead of the boolean is because sometimes it comes from a form field value or similar string representation, such as using php to initiate a javas
  8. Perhaps this will help someone who is having maddening problems with managing simple true/false conditionals. I have had a problem with the following code: argument 'e' is event being being handled. The user has clicked on an item in the web page. // etc... case 'either': if(heading == 'false') { heading = setFile(e); // if a file is detected, returns 'true', else returns 'false' } if(heading == 'false') { heading = setDir(e); // if a directory is detected, returns 'true', else returns 'false' } break; // etc.... The explanation is: The snippet is from a function
  9. I have developed a web based file editor that loads text file contents into a textarea element for raw display and editing. However there are problems with this: 1: any closing textarea tag forward slash has to be escaped: <\/textarea> other wise the browser goes berzerk and smears code and markup all over the place. 2: The browser will remove escapes when the content is posted, so all escapes have to be doubled: <\\/textarea>, then the extra escape has to be added by code when the file content is loaded into the textarea for edit. That means: generally insid
  10. I have a project that uses javascript window.open to open a window that loads a php enabled html form page. When the window is originally opened, it opens in the expected separate window. BUT, if I use one of the buttons assigned event handlers that call form.submit()* (method is set to post) * in the separate window. This is a self processing html/php form page. The resulting page opens in a new browser tab with the original window still opened but unresponsive to events. I am developing in Firefox 34.0.5. But I am assuming that this would be encountered on any DOM browser
  11. EDITED: While waiting for a reply, I have figured out the solution to this problem: The path info is wrong. All of the sub dirs have an index.php file and '.' and '..' And most have identical sets of directories such as php, js, css, and img. So, I am using scandir() to get the file list but it doesn't provide the necessary path info for each listing. I have to add that for the other functions to find and process the files properly. Maybe some else will see and benefit from this. Hello; I have a project that is run on a FreeBSD server and I am running into problems I can't figure
  12. Thankyou Moderator: I thought that null would remove the property because null is used to remove a select element option. So, it appears that it is not just a value here, at least. I am using O'Reilly's Javascript: the Definitive Guide, 6th ed for guidance where possible but it does not mention delete.
  13. I have this code: if(active[active.id].group.propertyIsEnumerable(selection)) { alert(selection) active[active.id].group[selection] = null; } That is looking for a particular property (selection) and is supposed to remove it from the object. In this case setting it to null, I thought, would remove the specific property so it would no longer be defined and therefore not be enumerable. But it does not seem to, as demonstrated by var test for(var x in active[active.id].group) { test += "n"+x; // new line in DOM browsers } alert(test) // The selection pro
  14. Thanks for the cntrl-click suggestion, but trying it out, it turns out to be cmd-click on my system. JK
  15. This is something that I have not worked with in the past, though I have often worked with select/option elements in the past. When I set the type attribute to multiple, I have to shift/click to select more than one item. Then I cannot deselect just one item. Am I doing something wrong, or is this typical behavior. The initial development is being done in FIrefox in Mac OSX. I am developing an application where a user can select items from a different list. The select/option element is added to as the user selects items from the list. The select/option element is to allow the user
×
×
  • Create New...