Jump to content

Volte

Members
  • Posts

    9
  • Joined

  • Last visited

About Volte

  • Birthday 01/27/1987

Contact Methods

  • AIM
    macsreallyrule
  • MSN
    master@dalescreative.com
  • Website URL
    http://www.voltechs.com
  • Yahoo
    macsreallyrule

Profile Information

  • Gender
    Not Telling

Volte's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys! Wow. It has been forever. I got caught up in college (dropped out) and then started working for software companies. My first job was UI developer front end stuff for a small startup where I got into RoR (eeek!) and now my current job I'm back into PHP. A bit rusty, but I've bought out the PHP40 (WD40? ok sorry) Anyway. So I've got this problem, which only exists in my head as a possibility because of my experience with RoR. Here is what I'm gunning for. static class BaseClass extends CoreClass { static function BaseFunction($Param) { return "You Said $Param"; } ... } class MyClass extends BaseClass { ... } Alright, so what I want to happen, is for MyClass to extend BaseClass to the point where it inherits all the properties of BaseClass, but only those functions can be used as static on MyClass. So for instance; MyClass::BaseFunction(); Yet, when I say; $myclass = new MyClass(); I don't want $myclass (instance of MyClass) to be able to access BaseFunction(); So; $myclass->BaseFunction(); should thrown an exception, i.e. I would never call that because it is [should be] out of context. Does this make sense? I basically want a base class that I can define a bunch of methods upon, so that the child class (class that extends the base class) can only use those functions in a static sense (do they call that singleton?). Yet, to complicate things. I want MyClass to be instantiable (sp?). Wow, ok. I tried my best here. Let me know if certain parts need clarification. Hopefully I didn't leave behind too much carnage. Cheers! -- Volte
  2. when you use document.write, it clears whatever is on the screen, and writes that on the page. basically you lose you CSS, and everything else that you don't rewrite. Try putting an element on your page such as <div id="content"></div>, and then doing: document.getElementById("content").innerHTML = "<Table> your table stuff here or whatever";
  3. Look into [a href=\"http://developer.apple.com/documentation/AppleApplications/Reference/SafariJSRef/Classes/Canvas.html\" target=\"_blank\"]Javascript Canvas[/a]. I know Safari, and Firefox both support it. It's the new "AJAX" :P (As in, the new cutting edge). To see an example, check out [a href=\"http://www.abrahamjoffe.com.au/ben/canvascape/textures.htm\" target=\"_blank\"]Canvascape - 3D Walker[/a]. All done with graphics (obviously).
  4. Pop this: [code]<div class="chan"> <h2><a href="/tvpdb?d=tvs&id=166030801&channels=us_KTVU&lineup=us_CA04931d&.intl=us">FOX<br>2</a></h2> <h2 class="right"><a href="/tvpdb?d=tvs&id=166030801&channels=us_KTVU&lineup=us_CA04931d&.intl=us">FOX<br>2</a></h2> <ul class="chan">[/code] Into a variable, and then try and do: [code]alert([the variable you put it into].search("<a href=\"tvpdb?d="));[/code] and then do: [code]alert([the variable you put it into].search("<a href=\"tvpdb?"));[/code] and watch the results. Look closely at those last two lines of code. Boggles my mind why it wont work. EDIT: Ok I think I narrowed it down to the "?", but why? and how do I overcome this. Any solutions? I've tried escaping it of course: "\?" but that doesnt help. >.< Grrr.
  5. (Did you remember to check "remember me"?)
  6. YOu need to be more specific. Do you mean the PHP source from a website? Because if that's what you mean, you can't. PHP is a server-side language, meaning its processed on the server end (the actual website) and the results are sent back to your browser. Otherwise, if the PHP file is on your computer, just double click it, or open it with a text editor. :)
  7. I like it. It looks nice. I was presently surprised. I think you need a soft, grey, or faded-dark-tanish (seeing as tan is your theme) border around those elements, the header, the content, posts, and navigation. Also, try creating your own icon for the gallery, that green OS X Zoom graphic does not fit. I'm thinking a dark-tan - like the border I suggested - circle filled in with the main tan color, and maybe if you want to get fancy, put a white plus in the middle of it, or something of the sorts. Looks very decent: 8.5/10
  8. Hey, pulled some info from my page, only, when I search for a specific string, it cant find it, I keep chopping characters off the end of the string that I am searching for, and it takes me up to this: [code]data.search("<a href=\"/tvpdb?")[/code] Any other characters after this (even when I know for a fact they DO exist) returns -1 (I "alerted" the results of the search, -1 means it wasn't found). The string is part of a url, and I'm actually searching for this entire part, but it will not cooperate: [code]data.search("<a href=\"/tvpdb?d=tvs&id=")[/code] Any tips, insights, ideas, solutions? Thanks a lot
  9. http://www.experts-exchange.com/Web/Web_La...Q_20972638.html Hope that helps, seems pretty impossible.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.