Jump to content

marmite

Members
  • Posts

    204
  • Joined

  • Last visited

    Never

About marmite

  • Birthday 11/15/1978

Contact Methods

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

Profile Information

  • Gender
    Female
  • Location
    London

marmite's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. PS. Sorry - this is in Actionscript 3 and I know I should use Flash forums but this is the one forum that always helped!
  2. :'( I'm going mad, if not there already! All I want to do is format my dataGrid so that headers align centrally, and data in the cells align right (for numbers) and centre (for text). I would also like to format numbers >1000 with a thousand comma separator... I'm using AS3 in CS4 with deadline approaching. Is this what I have to do: 1) Set up a .as file, and call it MyCellRenderer.as 2) Put a package{} in this .as file, and enter a Class and Function called MyCellRenderer and MyCellRenderer() respectively 3) Put a movieClip in my .fla library and name it MyCellRenderer with link to class MyCellRenderer 4) Do I also reference the .as file in the Class line under Properties at the stage level in my .fla? This seems a lot of effort to align some text! And it doesn't work! I get error #2007 "Parameter child must be non-null" from this line in my .fla code: myDataGridColumn.cellRenderer = "MyCellRenderer" Going insane Emma
  3. Hello, So, a journalist has this a Google Reader aggregator: http://www.google.com/reader/public/atom/user/18431890839212844364/state/com.google/broadcast This gathers his favourite feeds together. I need to put this on a client's Typepad-based blog site within their formatting etc - so I can't simply take the Google <script> clip they offer. So, I think I need to get the information in the above link as an RSS feed, and code it into my Typepad blog so that it feeds through. The Typepad help is unusually unhelpful on how to do this. It says it can be done but doesn't say how. Can anyone point me in the right direction to get me started? Thanks Emma
  4. Thanks for this. @Fenway - by normalise do you mean that i shouldn't have five columns, but one? @ anyone: I tried to complicate matters to JOIN another table and got an error because the column "code" is not recognised: select mixed_id,mixed_name,mixed_msg, mixed_card_1 as code from cu_card_mixed as m union select mixed_id,mixed_name,mixed_msg, mixed_card_2 as code from cu_card_mixed as m union select mixed_id,mixed_name,mixed_msg, mixed_card_3 as code from cu_card_mixed as m union select mixed_id,mixed_name,mixed_msg, mixed_card_4 as code from cu_card_mixed as m union select mixed_id,mixed_name,mixed_msg, mixed_card_5 as code from cu_card_mixed as m inner join cu_cards as c on c.card_id=m.code where mixed_status=1 Is there any way round this or do I need to do a nested query? Thanks Emma
  5. Hi, I have a table with 6 columns - an ID, and 5 columns of codes. I need to run a query that says "if this code exists in any of these five columns, do this". So, I could run a query with an OR statement somewhere... but what I'd really like to do is JOIN the columns, so that I end up with a list of IDs and the codes all in one column. So i have this: ID Code1 Code2 Code3 Code4 Code5 1 32 33 34 35 36 2 65 36 54 83 32 And i want this: ID Code 1 32 1 33 1 34 1 35 1 36 2 65 2 36 2 54 2 83 2 32 Scratching my head.. grateful for any help Emma
  6. marmite

    html emails

    Thanks for this. Is there ANY WAY at all of getting the images to show in the email without the person having to click "download images" ? I guess I'd have to embed them in the email somehow...? I just received an email with inline images which did not require downloading, so I'm sure it's possible... It's important for me because the images are the thing I'm trying to communicate - it's the whole point of the product. Thanks for any help Emma
  7. marmite

    html emails

    hi, i'm doing my first html email and wanted some tips. in particular, it seems the easiest thing is to create a webpage, and then send the webpage itself... is that right? question two - what do i do for sizing? the information i've read says to use tables and make them 98% wide... but i wanted a border of images around the edge of the email, which seems to require me to set widths for the images. See http://www.emmasaunders.com/email.html to see what i mean. That's with no width or height set. When i send that as an email you have to scroll. Is there some way of setting a percentage of available screen space, that can be read by all the various email clients? That would be neat. Thanks for your help Emma
  8. yep, done that. thanks though. any further tips on getting ranked. has anyone had direct experience of this and does it really take 6 months??????????????
  9. domain is the same, page names are different. I still have the old pages, but they don't have a one-to-one replacement page. do you have a sample of a redirect page? do i just put a header(location) in the page? @ taith: the pages are all finished, although i update bits and bobs each day. (did you see a page you didn't think was finished, or was that a general comment?). I'm so upset! If i'd known all this i would never have changed my site. Gutted. Emma
  10. Oh my god, please no. what are these phases you refer to? would it help to do a redirect now?? only, the workflow has changed and so there isn't a one-to-one relationship between old and new pages.
  11. I think you're asking two questions: (1) how to display the form data so the user workflow is correct, and (2) how to structure the DB appropriately. To answer (2), if you have a one-to-many relationship, i.e. one company may offer more than one position, then you need separate tables, COMPANY and POSITION, linked by either a foreign key (not available in phpmyadmin), or just an index. So, e.g. the POSITION table has a column called COMPANY_ID which links up with COMPANY_ID in COMPANY table. These should be unique. When you write to the POSITION table, you don't need to repeat all the company data, you just include COMPANY_ID for reference. For question (1), you can just write an IF statement in PHP that shows the first form, and when that has been submitted, displays the second form. Is that what you mean? So the "ADD COMPANY/POSITION page" on first request will go something like: FILL IN COMPANY DETAILS (form1) - OR - CHOOSE COMPANY FROM DROPDOWN (form2) FILL IN POSITION DETAILS (form3) So, if neither form1 nor form2 submitted, show form1 and form2 but not form3, else show form3. if (!POST[form1] && !POST[form2]) { echo (form3 stuff) } else { echo (form 1 and form2 stuff) hope this helps
  12. Hi, I'm a bit confused. I'm having Page Rank trouble (i.e. since I recoded my site a month ago, none of the new pages have received a page rank, even though they have been crawled etc. Don't know whether I'm being penalized, really sick of waiting now :'( ) Any tips on that score gratefully received for: www.cardsunlimited.com Anyway, in an effort to fix this problem, I've installed the lynx browser to view my site and see if there are problems. The first thing it asked for was "ok to allow php cookie bed6fa3b71236be?". But I haven't put any cookies on my site? I wonder if this is causing problems (yes, I am clutching at straws). Is anyone familiar with lynx??? Thanks Emma
  13. search engines read the resulting html, not the php that spews out the html. so anything in the html is search engine friendly. links that use text rather than images are always better! NB if your page is called www.example.com/page.php?id=123 google will only look at www.example.com/page.php (i think), and not look at the page as a whole ?id=123, or consider it a separate page. This means two things: (1) submit them a SITEMAP. this is really important in terms of SEO. google have loads of info on making a sitemap.xml (you can just copy their example and modify it), and (2) make sure that page.php has something on it, a "default" content, e.g. in your if stmt, do "if (it's a charity) { put this text } elseif (it's something else) { do this } else { (do this) } Make sure you have an "else" and not just all "elseifs", that way page.php will always have some content for search engines that can't see your page.php?id=123 good luck!
×
×
  • 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.